# JAR file exporter

This wizard allows you to create a JAR file.

## JAR package specification

JAR Specification Options:

Option | Description
--- | ---
Select the resources 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, select this option.
Export Java source files and resources | If you want to export JAVA source files and resources, select this option.
Select the export destination | Enter an external file system path and name for a JAR file (either new or existing). Either type a valid file path in the field or click Browse to select a file via a dialog.
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 packaging options

JAR Options:

Option | Description
--- | ---
Select options for handling problems | Choose whether to export classes with certain problems: Export class files with compile errors Export class files with compile warnings
Create source folder structure | Selected this option if you want the source folder structure to be rebuilt in the JAR. This option is only enabled when source files but no class files are exported.
Build projects if not build automatically | Select this option to force a rebuild before exporting. It is recommended to build be before exporting so the exported class files are up to date.
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 (Available when class file are exported):

Option | Description
--- | ---
Specify the manifest | 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
Seal contents | 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.
Select the class of the application 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.

Creating JAR Files

File actions