Actual combat exe4j to generate EXE files for jar files

Source: Internet
Author: User

1. Start exe4j, the interface is as follows, click the "Next" button

2. Select Jar in EXE and click "Next"

3. Fill in the project abbreviation name and the generated EXE storage directory, click "Next"

4. Select GUI application fill in Exceutable name Select the generated EXE icon (icon must be in ICO format), click Next

5. Select the jar file to generate the EXE, the jar package on which the project depends, and the main class for the project run

(0) Click the green plus sign to select the jar file to generate the EXE

(1) Again click on the Green Plus, select the project depends on the jar package

(2) Click on the selection button of main class, select the main class of project running

6. Select the Java version and JRE

(0) Input Java version, click Advanced Options Select Search Sequence

(1) Delete the default three search sequence in the following chart

(2) After the deletion, click the Green Plus, select the relevant JRE directory (JRE best copy to the directory where the Jar is located)

7. Select the client hotspot VM, click the "Next" button, and go down "next" until the 8th step appears

8. Click here to start the application, if everything works, then the EXE file will be generated successfully

The exe generated by this method does not have a JRE, if anyone knows that there is a way to bring the JRE in the generated EXE, please let me know. Thank you!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.