1. register the software: license information to enter the registration code: L-g782dn2d-1f1yqxx1rv1sqd
2. Select "jar in EXE" mode.
3. General: enter your Appliaction name.
4. Out Directory: stores the location of the generated exe.
5. excutename: xxx.exe
6. classpath: add your jar files (the packages you use in your project, and all the Java packages applied in your project) and select the main method.
7. Minimum Version: x. x determines the version number for your exe.
8. maxmum version: Do not enter it. Otherwise, an inexplicable error will occur. Error: No JVM cocould be found on your system. Please define exe4j_java_home to point to an installed JDK or JRE or download a JRE from www.java.com
9. Next --> next finash. At this time, the EXE file you want to generate has been generated.
Note that if your project is a swing programming, you must use relative paths for all path problems:
For example, add an icon to the frame:
Image frame_icon = toolkit. getdefaulttoolkit (). createimage (getclass (). getresource ("/exit.gif "));
Frame. seticonimage (frame_icon );
For example, add an icon for menuitem:
Image inputicon = toolkit. getdefatooltoolkit (). createimage (getclass (). getresource ("/input.gif "));
Inputmenuitem. seticon (New imageicon (inputicon ));
In short, use the relative path.