Eclipse Generating a jar Package
Opening the Jar file wizard
The Jar file wizard can be used to export a project as a runnable jar package.
The steps to open the wizard are:
-
In the Package Explorer, select the project content you want to export. If you want to export all classes and resources in the project, simply select the entire project.
-
Click the File menu and select Export.
-
Type "JAR" in the input box.
-
Select the JAR file option to open the wizard.
-
Click the Next button
Using the Jar file wizard
On the JAR File Specification page, you can perform the following operations:
-
Enter the JAR file name and folder
-
By default, only class files are exported. You can also export the source content by checking the "Export Java source files and resources" option.
-
Click the Next button to modify the JAR package options
-
Click the Next button to modify the JAR Manifest description
-
Click the Finish button to complete the operation