Creating a JAR File

To create a JAR file in the IDE, you must first create a JAR recipe. The JAR recipe stores information about your JAR file, which you can later modify and use to create a new JAR file.

To create a JAR recipe:

  1. Choose File and choose New.
  2. In the first panel of the New wizard, expand the JAR Packager node. Then choose JAR Recipe and click Next.
  3. In the Choose Name panel, enter:

    Click Next.

  4. In the Specify JAR Recipe Contents panel, select the files or directories you want to put in the JAR file. Then click Add. You can select multiple files by holding down Ctrl or Shift while clicking on file names and directories.
  5. In the Modify JAR Recipe Contents panel, you can specify destination information individually for each item you are adding to the JAR file.

    For a more detailed description of this panel, see The JAR Contents Property Editor.

  6. In the JAR Manifest panel, enter the text for the JAR file's manifest and click Finish. For more information on creating the JAR manifest, see Creating a JAR Manifest.

    The JAR recipe file appears as a JAR recipe node in the Explorer. On the node's property sheet, you can set a file filter, the JAR file's compression level, and other attributes.

To create a JAR file from a JAR recipe:

To view the contents of the JAR file as a filesystem:

See also
The JAR Contents Property Editor
Modifying a JAR File
Updating a JAR File
Running a JAR File
Setting a JAR Content Filter
Creating a JAR Manifest

Filesystems and the Java Classpath
Mounting a Filesystem

Legal Notices