September 2005
Beginner
576 pages
13h 6m
English
When you deploy a Java program, keeping track of all the class files and other files required by the program can be cumbersome.
To make this easier, the kit includes a tool called jar that can pack all a program's files into a Java archive—also called a JAR file. The jar tool also can be used to unpack the files in one of these archives.
JAR files can be compressed using the Zip format or packed without using compression.
To use the tool, type the command jar followed by command-line options and a series of filenames, folder names, or wildcards.
The following command packs all a folder's class and GIF image files into a single Java archive called Animate.jar:
jar cf Animate.jar *.class *.gif
The argument cf
Read now
Unlock full access