Creating a runnable jar file:

This quick tutorial gives a step by step process of creating runnable jar files with the help of Ant. It is not the only way to do it, but it is probably the easiest.

A runnable jar file allows a use to run Java classes without having to know class names and type them in a command prompt, rather the user can just double click on the jar file and the program will fire up.  A runnable jar allows Java classes to be loaded just like when a user clicks an exe file.  The easiest way to do this is to use Apache Ant.  Ant is similar to a "make" file in C++, but it is for Java.

If you are having some problems or you want to find out how make Ant do some more neat stuff life automatic compilation, Javadoc, running, etc.. refer to this site