Packaging Java programs with exe4j

Source: Internet
Author: User

Tools:

    • exe4j Software (Cloud Inventory)
    • Jar packages for Java programs that can run
  1. Open our already installed exe4j software, first of all see is a welcome interface, we directly "next" on it;

  2. 2

    In the second step we select "JAR in EXE mode" and then "next";

  3. The third step needs to enter the program's abbreviated name and specify the output directory, is the program's Save directory, we set in accordance with their own circumstances OK, no special requirements, and then "next";

  4. In the fourth step, we need to specify the program's name, set the program's icon, note that the program icon to use the ICO format of the picture;

  5. Then we select "Generate" in the menu bar on the left and tick "executeable", note that this can avoid unnecessary trouble. Then "Next";

  6. In the fifth step we need to add our jar package, click on the right green "+" sign, then select "Archive", open the Browse directory, find our Jar package, then select "Open", "OK";

  7. We can see that our jar package has been added and finished;

  8. Then select Main class, after main class, select "Browse", find our main class, add the main class, and then "next";

  9. In the sixth step to set the minimum maximum version of the JRE, we set according to their own situation is OK, the small version set to 1.5, the large version is set to 1.7, on the line;

  10. Then click "Advanced Options" and select "Search sequence" to add our JRE to the software so that our code can be run on other computers that do not have a Java environment installed, click on the add to the right, select "Directory", Then select "Browse" to locate our JRE and add it;

  11. Then click on "Preferred vm" on the left, select "Client hotspot vm", then "next";

  12. The rest of the steps we directly default on the OK, so that our generated EXE file will be able to run properly!

    Error problem:

    Choose the version of the JDK to fit

    Select the 32-bit JRE file or the error

Packaging Java programs with exe4j

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.