The java springboot project is packaged into an exe application

Preliminary preparation

Type the project into a jar package.
Put the jre and jar packages in the jdk directory into the same directory
(if you don’t have jre, you need to download one from the official website)
Address: https://www.oracle.com/java/technologies/javase /javase8u211-later-archive-downloads.html

Download packaging tool
link: https://pan.baidu.com/s/17GJ9DBgR_jnBtw6o9-YM9g?pwd=jztt
Extraction code: jztt
official website address: https://www.ej-technologies.com/download/exe4j/files

Registration code:

L-g782dn2d-1f1yqxx1rv1sqd
A-XVK258563F-1p4lv7mg7sav
A-XVK209982F-1y0i3h4ywx2h1
A-XVK267351F-dpurrhnyarva
A-XVK204432F-1kkoilo1jy2h3r
A-XVK246130F-1l7msieqiwqnq
A-XVK249554F-pllh351kcke50

Start packing

Once you open the software, enter the secret key

Fill in name and company as you like and click Next
Insert image description here

Select jar in exe

Next step
Insert image description here

Fill in the application name and output path

Next step
Insert image description here

Select startup mode

GUI startup
Black window startup
Start as a service

The application icon is optional. If selected, use the ico suffix.
Insert image description here

Choose a 64-bit system

The new version will automatically select a 64-bit system
![Insert image description here](https://img-blog.csdnimg.cn/5f3873ae01c349c7a4fd1c381ba42712.png

![Insert image description here](https://img-blog.csdnimg.cn/1563cbe625634903a9c26d900805a33a.png

Always take the next step

Go to this page to configure the jar package startup

Add: -Dfile.encoding=utf-8 in the VM parameter configuration
Insert image description here
Insert image description here
Insert image description here

Insert image description here

Click Next to configure JRE

Insert image description here
Insert image description here
Select the jre in the same directory as the jar package.
The selected directory should be in the form of a relative directory.
Insert image description here

Next, select Client VM

Insert image description here

Then continue to the next step and the following interface will appear.

Insert image description here

Guess you like

Origin blog.csdn.net/weixin_44931584/article/details/128918444