Monday, 10 February 2014

All about Jar file

JAR stands for Java Archieve.It is simply the collections of .class files and other files(jpg,properties)that will be used by our application
Creating a Jar File.
MyApp1
p1
Demo.java
HelloWorld.java
Creating Jar files.
1>Compile all the .java to .class(A jar file without .class is of no use)
MyApp1>javac -d  .   *.java
2> Remove .java if not needed
MyApp1>  jar   cf   MyJar.jar  p1

No comments:

Post a Comment