Jul 19, 2011

Making a .jar file


  • Here is the one line command for making a .jar file from the class and other files.

         jar -cf MyJar.jar A.class B.class .C.class
         - c option for creating jar file
         - f option for indicating output goes to a jar file instead of stdout
         Reference


  • jar cvfe VAG.jar BackgroundGeometry *.class
  • java -jar VAG.jar
         Reference

No comments:

Down with the Dictatorship!

    "Let them hate me, so that fear me" - Caligula 41AD