Eclipse Tutorial on Eclipse Create Jar Files

opening the jar file wizard

the jar file wizard can be used to export the content of a project into a jar file. to bring up the jar file wizard −

  • in the package explorer select the items that you want to export. if you want to export all the classes and resources in the project just select the project.

  • click on the file menu and select export.

  • in the filter text box of the first page of the export wizard type in jar.

open jar file wizard
  • under the java category select jar file.

  • click on next.

using the jar file wizard

in the jar file specification page −

  • enter the jar file name and folder.

  • the default is to export only the classes. to export the source code also, click on the export java source files and resources check box.

jar file specification
  • click on next to change the jar packaging options.

  • click on next to change the jar manifest specification.

  • click on finish.