Skip to content
Other versions

Loading…

Creating a JAR file with Eclipse

  1. Choose the Java file from Project Explorer or the Navigator view.
  2. Right click (to show the contextual menu) and choose “export”.
  3. Choose Java -> JAR file.
  4. Select the destination folder, for example C:\openkm-dev\jar\your-class.jar.
  5. Click Next.
  6. Click Next.
  7. Optional step. If your java class implements “public static void main(String[] args)” then you must choose your java class as the class of the entry point.
  8. Click Finish.

Select the file to be exported as a jar. Right click with your mouse and select the “export” option.

Select the “.jar” file option and click on the “next” button.

Select the “JAVA classes to be included” in the jar file and click on the “next” button.

Click on the “next” button.

Select the “Main class” and click on the “Finish” button.