Package the jar into an EXE program using install4j. After some exploration, the jar program can finally succeed. In order to write down the process, write down the process for memo!
1. General setting
First, set the name of the project you want to package, such as the version number, full name, or short name. If there is a Chinese character, it is displayed in a box. However, the package is displayed in Chinese. Press the right arrow in the upper right corner to jump into the next window. Enter the minimum Jer version number and the maximum number. The minimum value is 1.5, and the maximum value is null. Press the right arrow to select the language of the installation interface. The first is Chinese. In the next window, select the path where the EXE file is generated and the name of the generated EXE file, and press next to the next option.
2. File
Click Add files to select the path of the JAR file to be packaged and related files. (If you are using netbeans, there will be a disc folder after generation. We recommend that you first test it in this folder, put all the files to be used in this folder .) Of course, you can also choose one by one, but for convenience, I did that. Select the folder of the file to be installed. Press next. In this window, select the files that are not packaged. The checked items are not packaged. All the way to the next window.
3. launchers
Double-click the new launchers icon. In the displayed window, enter the exefile name (for example, install.exe generated if installis input) In executable name. enter. In the following directory, select the first two check boxes. Click Next. In the next window, enter two icons: 16*16 and 32*32. Preferably in PNG format. Click one more step to add your jar file in the class path, that is, the generated JAR file. Select your program entry in main class. All the way to next to OK.
4. Install
Click the right arrow in the upper-right corner to jump to the actions tag window. Select create program group, and enter the name generated in the Program Group in WINDOW> program group name on the right, that is, the name displayed after you click Start> program, if the input is Chinese, it is displayed in a square. Click the right arrow to add the disc file. All files in the directory are packed. Press the right arrow to jump to media.
5. Media
Double-click the new media file icon. In the new window, select the file generation platform, select the window, and press next. In the first text box, enter $ {compiler: SYS. fullname} indicates the full name of the file. Enter the path for installing the software in the text box below (for example, to move to disk D, enter D: \), all the way to next to step 2 (bundlen JRE ), you need to generate an EXE program with built-in JRE and download JRE. Click Next to step 2. in step 2, click exclude file. In the window, you can filter the files that are not generated. All the way to next to OK.
6. bulid
There are test bulid and start bulid, You can first test, if there is no error, you can generate the EXE file.
From: http://www.evget.com/zh-CN/info/catalog/15021.html