Download jpackit from this link http://sourceforge.net/projects/jpackit/
Create a jar file of all the *.class files in your java folder
jar -cvf myapplication.jar *.class <enter>
Start jpackit as follows:
java -jar jpackit-1.0.2.jar <enter>
Now fill in the parameters by clicking the
Choose ... button next to them
Parameter Value Comment Base Dir /home/user/myapplication The path where all the class files reside Main jar myapplication.jar The myapplication.jar file you created as in 1. above. Dependent jars [sql.jar] Choose all other jar files your application depends on Main class myapplication Shows this automatically from the main jar as entered above Package location /home/user/myapplication This is the path for the result jar Package Name myfullapplication This is the result jar Package type Select jar
Build -> Validate config. If validation is successful, then click on
Build -> Build Package.
jpackit also stores your configuration as a .pbc file. Below is the content of the .pbc file.
#Mon Jun 12 21:37:01 NST 2013
You can load this configuration file and build the package without entering any parameters the next time you need to create the package again.