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.
2. Put the jar package packaged by the maven project in the directory you want to put, mine in the E:\test directory
3. Open the installed exe4j tool
4. Select ("JAR in EXE" mode) option
5. Fill in the directory and name of the generated exe file
6. Select the type of executable file
7. Choose according to your own computer
8. Add the jar path, if it is 32-bit, there is no need to fill in the VM Parameters
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.
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