Monday, December 20, 2010

Method How To Create JAR(Java Archive) FILE?

JAR files a way of making collection of class into a single unit i.e package of .class file . JAR files also use
compression,
step 1 :: Go directory your classes and type a command :-

jar -cf jarFile.jar *.class

Example :: jar -cf jarFile .\java soft\jakarta-struts\*.class

option ::
1) c option for create a JAR file.
2) f option for that you want the output to go to a file



No comments:

Post a Comment