CLASS
and JSB
files you want to include in the JAR file are already beans, you can skip directly to step 5. If you have one manifest for a directory, name the file MANIFEST.MF
(all uppercase). If you have more than one, you can give them different names, and internally, they will be combined into a single manifest file named MANIFEST.MF
. The first line in this file should contain this:
Manifest-Version: 1.0
Molecule
applet bean:
Name: sunw/demo/molecule/Molecule.class
Java-Bean: True
jar
command.
jar cfm jar-name manifest-name bean-name1 bean-name2...
Avogadro.jar
to hold the Molecule
class, use the following command:
jar cfm Avogadro.jar MANIFEST.MF sunw/demo/molecule/Molecule.classIf you did not need to create a manifest file in step 3, then the command to create a JAR file takes this form:
jar cfm jar-name bean-name..Be sure to list each file to include if you use this second form of the JAR command.
jar tf jar-name
Last Updated: 11/20/97 13:56:39