Creating Java executable files using JSmooth. You can download it by clicking the link below.

Then, assuming all preparation is complete, let’s create a Java exe file using JSmooth.


1) Right-click the project in Eclipse and select Export.

Step1


2) Select Runnable JAR file in the Export screen and click Next

Step2


3) Set the execution environment in Launch Configuration.

If you’ve run it at least once in Eclipse, the class containing main should be visible.

Step3


4) Run JSmooth.

In the Skeleton window, set the appropriate type. If you’ve configured a UI, select Windowed Wrapper. I’m planning to make a program using Swing into an executable file, so I selected Windowed Wrapper.

Step4


4-1) When Windowed Wrapper is selected

Check Launch java app in the exe process at the bottom.

Step4-1


5) Move to Executable.

Executable Binary means the name of the created executable file (add .exe) and Executable Icon is the icon of the executable file. Select the image you want to use.

Step5


6) Move to Application.

First, check Use an embedded jar in the Embedded jar settings box and select the jar file created in the previous step. Then, in Application Settings, click the settings button and specify the class containing main.

Step6


7) Select JVM version.

You can specify only the minimum version. Then click the gear icon at the top!

Step7


8) Clicking the gear button shows the following screen.

Enter the name of the executable file. (Be sure to add .exe)

Step8

If everything went well up to here, the exe file will be created. Sometimes JSmooth doesn’t run or errors occur, but most causes are when JDK is not installed or Java Path is not set correctly.