Export > JAR file

This wizard allows you to create a JAR file.

JAR Specification

JAR Specification Options

Option

Description

What do you want to export?

In the list, check or clear the boxes to specify exactly the files that you want to export to the JAR file. This list is initialized by the workbench selection.

Export generated class files and resources

If you want to export generated CLASS files and resources (excluding JAVA files), select this option.

Export java source files and resources

If you want to export JAVA source files and resources, select this option.

Where do you want to export resources to?

Type and/or browse to select an external file system path and name for a JAR file (either new or existing).

Options

You can select any of the following options:

  • Compress the contents of the JAR file : to create a compressed JAR file
  • Overwrite existing files without warning : if an existing file might be overwritten, you are prompted for confirmation. This option is applied to the JAR file, the JAR description, and the manifest file.

JAR Options

JAR Options

Option

Description

How should problems be reported?

Choose how to be notified of export problems:

  • Show warnings when export is done
    (to view warning-level problems)
  • Show errors when export is done
    (to view error-level problems)

How should class files with problems be treated?

Choose whether to export classes with certain problems:

  • Export class files with compile errors
  • Export class files with compile warnings

Note: If this option is disabled, it does not automatically exclude CLASS files with compile errors. The corresponding option must be unchecked.

Save the description of this JAR in the workspace

If you select this option, you can create a file in the workbench describing the JAR file you are creating. Either type and/or browse to select a path and name for this new file.

JAR Manifest Specification

JAR Manifest Specification Options

Option

Description

Where does the manifest come from?

Choose the source of the manifest file for this JAR file:

  • Generate the manifest file (you can also choose either to save or reuse and save the new manifest file)
  • Use existing manifest from workspace

Which packages must be sealed?

Choose which packages in the JAR file must be sealed:

  • Seal the JAR: to seal the entire JAR file; click Details to exclude selectively
  • Seal some packages; click Details to choose selectively

Note: This option is only available if the manifest is generated.

Which class is the application's entry point?

Type or click Browse to select the main class for the JAR file, if desired.

Note: This option is only available if the manifest is generated.