| Author |
Tools for application distribution
|
Rob Hunter
Ranch Hand
Joined: Apr 09, 2002
Posts: 788
|
|
|
I have a few class files that I want to "bundle up" for easy distribution (includes 2 "package"s - one that creates frameworks/layouts and the other works with shapes and drawings). What tools are available for packaging up code written in Java? Recommendations would be most welcomed as would reasoning for preferred use. Thanks again.
|
 |
Rob Spoor
Sheriff
Joined: Oct 27, 2005
Posts: 19232
|
|
|
That's what JAR was created for.
|
SCJP 1.4 - SCJP 6 - SCWCD 5
How To Ask Questions How To Answer Questions
|
 |
Rob Hunter
Ranch Hand
Joined: Apr 09, 2002
Posts: 788
|
|
|
What's Ant used for? I was wondering if there was a GUI application for creating jars and such, as opposed to command-line. Thanks for the response.
|
 |
Hunter McMillen
Ranch Hand
Joined: Mar 13, 2009
Posts: 490
|
|
Ant is a tool for automating software build processes. I'm not sure it would be the best idea if you were just packaging up a few files. As Rob mentioned, JAR would be a good choice. A google search for "GUI to create Jar files" turned up a few decent looking results.
Ant homepage, if you want to read more about ant:
http://ant.apache.org/
Hunter
|
"If the facts don't fit the theory, get new facts" --Albert Einstein
|
 |
Rob Spoor
Sheriff
Joined: Oct 27, 2005
Posts: 19232
|
|
Ant can be used to automate compiling and creating JAR files, but Ant itself will not create a distributable file. You need to tell Ant to create one for you, usually using JAR.
I believe most IDEs (Eclipse, Netbeans, etc) allow you to create JAR files quite easily, but I suggest you read this so you know at least how it all works. You'll be glad when you need to create JAR files and you don't have an IDE available.
|
 |
 |
|
|
subject: Tools for application distribution
|
|
|