Use exe4j to convert jar to exe and exe4jjar to exe
I have read a lot of posts about exe4j recently, which are basically very old, and there is still a bit of pitfall that will be explained. I used exe4j5.1.
You can download https://www.ej-policies.com/download/exe4j/version_51.
Please install Baidu on your own, there are tutorials
1. First open exe4j
2. Click next and select "JAR in EXE" mode.
3. Click next and enter General and Directories.
4. Click "next". For example, the image can be deselected.
5. Note that if your jdk is 64-bit, make sure this option is selected.
6. Click Next and select the corresponding jar package. The jar package must be placed in the first place. Then, add the corresponding jar dependency package below.
7. Note that if your database table is in UTF-8 format and you do not set the options, garbled characters will appear.
8. Click Next and fill in the options
9. If you want to run your code on a machine without jdk installed, place the jre under the exe directory and click + to select
10. continue to the next step and click OK to test
If you have any questions, leave a message and I will help you solve them.