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
Select jar in exe
Next step
Fill in the application name and output path
Next step
Select startup mode
GUI startup
Black window startup
Start as a service
The application icon is optional. If selected, use the ico suffix.
Choose a 64-bit system
The new version will automatically select a 64-bit system
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
Click Next to configure JRE
Select the jre in the same directory as the jar package.
The selected directory should be in the form of a relative directory.