aspose file tools*
The moose likes Beginning Java and the fly likes Tools for application distribution Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Tools for application distribution" Watch "Tools for application distribution" New topic
Author

Tools for application distribution

Rob Hunter
Ranch Hand

Joined: Apr 09, 2002
Posts: 826
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: 19760
    
  20

That's what JAR was created for.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Rob Hunter
Ranch Hand

Joined: Apr 09, 2002
Posts: 826
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: 492

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: 19760
    
  20

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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Tools for application distribution