The Jar Export wizard allows you to create a JAR file.
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 enabled, then generated class files and resources are included in the JAR. |
Export all output folders for checked projects |
If enabled, then all output folders are included in the JAR. |
Export Java source files and resources |
If enabled, then Java source files and resources are included in the JAR. |
Export refactorings for checked projects |
If enabled, then refactoring scripts for the selected projects are included in the JAR. This allows clients to migrate to the new JAR by executing all the stored refactorings in the JAR. |
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:
|
JAR Options:
Option |
Description |
---|---|
Select options for handling problems |
Choose whether to export classes with certain problems:
|
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 Options (Available when class file are exported):
Option |
Description |
---|---|
Specify the manifest |
Choose the source of the manifest file for this JAR file:
|
Seal contents |
Choose which packages in the JAR file must be sealed:
|
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. |