Manifest File

The manifest file we will make will be created as an archive named MANIFEST.MF in our jar file under the META-INF directory. To see what it looks like, you will later need to extract it with something like WinZip.

We need to give the jar tool a hint that Panel.class is a bean for the beanbox. So create a file in the src directory called manny.txt that has:

Name: java/awt/Panel.class
Java-Bean: True where exactly one space follows the : of each name/value pair.

A return is recommended after the last line. Incidentally, a return is required after every line in a manifest file.

Those lines of text are added to the manifest file archive for the beanbox to read later. The m flag indicates to jar the manifest info to add to the manifest file in Meta-INF. The order of the f and m flags is the order of their arguments so try:

jar cmfv manny.txt Panel.jar /java/awt/Panel.class

You should have a jar file that is loadable into the beanbox. This is what mine looks like. Notice the properties.