August 2004
Intermediate to advanced
480 pages
9h 41m
English
A JAR file (Java ARchive) uses the same algorithm as a Zip utility does to compress numerous documents into one archive document. The benefit of a .jar file is that the developer can combine HTML, applets, class files, images, sounds, and everything else that makes up an application, and put them all into a JAR to facilitate easy distribution of the application. The jar tool is a Java application tool, regularly available with the SDK.
Note that you can add v to the command-line call options for verbose output, to indicate what is happening while your JAR is being created.
Creating a New JARNavigate to the directory in which you want to create the JAR.
Type the following at the command line:
jar cf myJar *.class
Read now
Unlock full access