The exe4j tool makes the jar package generate an exe executable file

Under window, use exe4j tool to generate exe executable file

1. Download exe4j directly on the official website
https://www.ej-technologies.com/download/exe4j/files

The installation steps of exe4j are very simple, just click on the next step.

Insert picture description here

2. Put the jar package packaged by the maven project in the directory you want to put, mine in the E:\test directory

Insert picture description here
3. Open the installed exe4j tool

Insert picture description here
4. Select ("JAR in EXE" mode) option

Insert picture description here
5. Fill in the directory and name of the generated exe file

Insert picture description here
6. Select the type of executable file

Insert picture description here
7. Choose according to your own computer

Insert picture description here
8. Add the jar path, if it is 32-bit, there is no need to fill in the VM Parameters

Insert picture description here
9. The first one is used by default. If there is no Java environment on the computer, the JDK in the second one will be automatically loaded. Even if there is no Java environment on the computer, the generated exe file can be executed.

Insert picture description here
Insert picture description here
10. Just keep going to the next step, you can see that the exe file has been generated, double-clicking the exe file is equivalent to starting the project

Insert picture description here
Insert picture description here

Guess you like

Origin blog.csdn.net/qq_41936224/article/details/109470214