1.Create Manifest file with following entries
a.Class-Path: <lib1.jar> <lib2.jar> <path/lib3.jar>
b.Main-Class: <classname>
c.Place a new line at the end of this file
2. use "jar" command to create jar
jar cvfm <your_jar_file.jar> <manifest_file> <class_files> <libraries>
3. To execute jar using unix command
java -jar <your_jar_file.jar>
No comments:
Post a Comment