exe4j How to use
This tool is a tool that wraps Java programs into EXE format files. (Click the Exe4j\bin\exe4j.exe file) to start as shown
If you are not registered, you can use this registration code: A-XVK209982F-1Y0I3H4YWX2H1
Please fill in your name and company name
Open the EXE4J application
Click "Next" Directly, then select "Regular mode" option, then click "Next"
Enter the short name of your application, such as Autoscannapp
Directory General Select the build directory of your EXE file
Executable directory This place fills in "." (point) The expression of a relative path, which is used more later, note
Click "Next"
Enter the executable file name (without the. exe) for example: Autoscannapp; Select the icon file location, tick the unchecked option, and leave the default. Click "Next"
Click the "+" plus sign to add classpath
Add Lib library (relative path)
Then add the program's class directory, our program is the bin directory can be.
Add Bin directory
Select Main class file
Program Auto Search main function
Select the main function file, then click "OK"
The final result, click "OK"
Here to fill in the requirements of the JRE environment, the minimum version, we have to use the 1.7 version of the method in the program code, so here to write a minimum of 1.7
Then click on "Next"
?
By default, click "Next" directly
Prompt language, because there is no Chinese, so directly select "Next"
After the completion, click ①, you can check the success of the executable file compilation;
Click ② to save the current setting as a project file for the next direct use.
Click "Exit" to exit the app. Then go to the output directory to test it. This mode requires that the Bin folder and the Lib folder under the original folder be copied over to use.
Export the jar package to EXE using EXE4J