You can create JAR files using the JDKjar
tool. Some examples of creating JAR files follow.To create a JAR file named
file.jar
that includes compressed versions of all of the class and GIF files in the current directory:To create a JAR file for an applet whose classes are in a package namedjar cvf file.zip *.class *.gifcom.mycompany.myproject
:jar cvf file.zip com/mycompany/myproject/*.class *.gif (Solaris) jar cvf file.zip com\mycompany\myproject\*.class *.gif (Windows 95/NT)