Use the jar package generated by maven to create the springboot project into an exe application package under the windows platform (with its own jre environment).
Tools: 1. exe4j 2. Put the Inno Setup
tool on the network disk, link: https://pan.baidu.com/s/1ZHX8P7u-7GBxaC6uaIC8Ag
Extraction code: ffkk
The exe4j tool will type the jar into a simple exe file, Inno Setup Package the above simple exe file and jre environment into an exe file with installation steps.
Steps: 1. exe4j
1. User company secret key: A-XVK275016F-15wjjcbn4tpj. The other two items are
2,
3,
4,
5,
6, -Dfile.encoding=utf-8
. Select the main class to run, spring Project selection is as shown in the picture above
7,
8. Keep next until success
2. Inno Setup
1,
2,
3,
4,
5. You can also type jdk in. There is no jre folder after jdk11 and later versions are installed (required Compile and generate jre by yourself)
If environmental problems occur after putting jre into the installation package, try to put the entire jdk directory into the package
6,
7,
8,
9,
10,
11,
12,
13.
14. The key step
is ready to be executed.
Java jar package is packaged into exe application
Guess you like
Origin blog.csdn.net/qq_42182034/article/details/129452833
Recommended
Ranking