Open our already installed exe4j software, first of all see is a welcome interface, we directly "next" on it;
- 2
In the second step we select "JAR in EXE mode" and then "next";
The third step needs to enter the program's abbreviated name and specify the output directory, is the program's Save directory, we set in accordance with their own circumstances OK, no special requirements, and then "next";
In the fourth step, we need to specify the program's name, set the program's icon, note that the program icon to use the ICO format of the picture;
Then we select "Generate" in the menu bar on the left and tick "executeable", note that this can avoid unnecessary trouble. Then "Next";
In the fifth step we need to add our jar package, click on the right green "+" sign, then select "Archive", open the Browse directory, find our Jar package, then select "Open", "OK";
We can see that our jar package has been added and finished;
Then select Main class, after main class, select "Browse", find our main class, add the main class, and then "next";
In the sixth step to set the minimum maximum version of the JRE, we set according to their own situation is OK, the small version set to 1.5, the large version is set to 1.7, on the line;
Then click "Advanced Options" and select "Search sequence" to add our JRE to the software so that our code can be run on other computers that do not have a Java environment installed, click on the add to the right, select "Directory", Then select "Browse" to locate our JRE and add it;
Then click on "Preferred vm" on the left, select "Client hotspot vm", then "next";
The rest of the steps we directly default on the OK, so that our generated EXE file will be able to run properly!
Error problem:
Choose the version of the JDK to fit
Select the 32-bit JRE file or the error