The JAR Utility
By ruzaib khan
A utility is used to generate a JAR file.
A utility is used to generate a JAR file. Its syntax is shown here:
jar options files
The following command creates a JAR file named Xyz.jar that contains all of the .class
and .gif files in the current directory:
jar cf Xyz.jar *.class *.gif
If a manifest file such as Yxz.mf is available, it can be used with the following
command:
jar cfm Xyz.jar Yxz.mf *.class *.gif
The JAR Utility (653 Views)