Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

Eclipse Java Development User Guide
Previous Page Home Next Page

JAR File Exporter

The Opens the JAR export wizard Jar Export 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 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:

  • Compress the contents of the JAR file : to create a compressed JAR file
  • Add directory entries: adds an entry for each directory to the JAR file, even if the directory does only contain subdirectories.
  • 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.

Related tasks

Creating JAR files

Related reference

File actions


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire