Recently saw a lot of posts about exe4j, basically are very old, and there is a little pit, will explain. I'm using the exe4j5.1.
can go to https://www.ej-technologies.com/download/exe4j/version_51 download
Install please own Baidu, have the tutorial
1. First Open exe4j
2. Click Next to select "JAR in EXE" mode
3. Click Next to complete the general and directories
4. Click Next to do the operation, the picture can not be selected
5. Note that if your JDK is 64-bit, make sure that this option is selected
6. Click Next, then select the appropriate jar package, your packaged jar must be placed first, then add the corresponding jar dependency package below
7. Note that if your database table is in the utf-8 format, if you do not set the option, it will appear garbled
8. Click Next to fill in the options
9. If you want to run your code on a machine without a JDK, place the JRE in the EXE directory and click + OK
10. Then the next step is OK, click on it to test
If there is any problem can leave a message, I will help to deal with.
Using exe4j to turn jars into EXE