The best way to distribute java applications is using a JAR file that is run with the java VM.

To create a JAR with eclipse we have to go the project explore and click with the right button and on the menu select “Export

On the next window we select to export as a runnable JAR file

After this, we need to select:

  • The execution entry point (Configured launcher)
  • The export destination
  • And the option to package the jar with libraries