Creating a JAR File

See Also

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. On the first page of the New wizard, expand the JAR Archives node. Then choose JAR Recipe and click Next.
  3. On the Choose Name page, enter:

    Click Next.

  4. Select the files or directories you want to put in the JAR file and click Add. You can select multiple files by holding down Control or Shift while clicking file names and directories. When you add a directory to a JAR, you also add all of its contents. Click Next to proceed.
  5. In the Modify JAR Recipe Contents page, you can specify destination information individually for each item you are adding to the JAR file.

    The page displays JAR recipe contents in three columns:

  6. In the JAR Manifest page, specify the text for the JAR file's manifest and click Finish. You can generate the manifest text, load it from a text file, or type it in yourself.

The JAR recipe file appears as a JAR recipe node in the Filesystems window. On the node's property sheet, you can set a file filter, the JAR file's compression level, and other attributes. See JAR Recipe Nodes in the Filesystems Window for more information on JAR recipe nodes.

To create a JAR file from a JAR recipe:

When the JAR file is created, the JAR recipe's uncompiled JAR icon node node is replaced with a icon node node. You can copy and paste the icon node node to put a copy of the created JAR file in another directory.

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
Mounting a Filesystem

Legal Notices