INSTALL4J tools to package EXE for Java programs

Source: Internet
Author: User

Package EXE for Java program with INSTALL4J tool

Producer: Mark

Production Time: 2013-05-02

?

  1. Use Eclipse to package the source of the program into a jar file.

    Packaging jar Method I do not introduce, I believe everyone will, will not Baidu a bit.

  2. Ready to work.

    The jar package that will be exported: Aaa.jar, the picture that the program needs: images, database, and the PNG image of the icon after you want to generate the EXE file, copy all to a SMMs folder below.

  3. Open the installed install4j file

    Enter the full name of the program, the program short name, version number, and then click the blue arrow in the upper-right corner for the next step.

    ?

  4. Enter the minimum version number of the JRE, which can be up to null. Because previously packaged other source code, and installed JRE so in the following JRE search results (red silk border) will appear in the JRE environment, the initial packaging is not. Click the arrow in the upper right corner to proceed to the next step.

  5. Select the language and click the upper-right arrow to proceed to the next

    ?

  6. In the red box, set the file to store the path, click the upper right arrow to proceed to the next step.

  7. Click Next to the Files screen in succession, click Add Files (red box)

    ?

  8. After clicking Add files, if you are packaging a separate file, select single Files,next to Next

  9. Click the green plus sign to add the files you want to package.

  10. Select the desired jar package

  11. Always click Next to the finished interface, then click OK.

  12. You can see the jar file that you just introduced

  13. Because our program requires a database and pictures, we also need to take these in. So first set up two folders images and database. First import the picture, mouse select images, click Add Files

  14. Select Directory here, because the entire picture folder is imported directly.

  15. Find the path to the picture

    ?

    ?

    ?

  16. Keep clicking next to the finished interface, click OK

  17. You can see the path of the picture you just imported, then select Database, click Add Files,
    The same approach to importing database

  18. Import successfully, click the upper right arrow to proceed to the next step

  19. After clicking next to this screen, click the green plus sign,
    Then select all files in the distribution tree and then the upper right arrow to proceed to the next step.

  20. Double-click New laucher

  21. Select the first generated launcher and click Next

  22. In executable name, enter the name of the EXE file to be generated, and install the red box selection. Click Next

    ?

  23. Here is the icon to set the startup file after the build EXE file is installed, click Next

  24. The first step is to select the Green plus sign, add jar files and pictures, database

  25. Select Archive and select Aaa.jar, point Ok,ok

  26. You can see the imported JAR file, and then continue to click the Green plus sign to import pictures and databases

  27. Select Directory, check images, point Ok,ok

  28. Import the database in the same way, then select Main class, then next

  29. Leave the default, click Next

  30. Finished, OK

  31. Click the arrow in the upper right corner, next

    ?

  32. Continuous point next to Installer's actions interface, select Create program group,

Then select the Windowsèprogram group name setting to generate the name

(ie: start = = "All programs are seen after the program group name)

?

?

?

    1. Successive next next, enter the media interface,

      Double-click New Media file

      ?

    2. Installer Select Windows, then next next

    3. Enter ${compiler:sys.fullname} in the first text box, meaning the full name of the file. Enter the path to the software you want to install in the text box below, which is empty. Click Next

    4. Click Next to step Sixth, select the JRE environment, because I have the JRE installed on my machine, so I choose the first item,

Then next

The most important step:

In general, we all need to pack the JRE in, otherwise, other client installation, if no JRE program can not run, so we choose the second, and then put the JRE in, the tool also provides download JRE, is a lite version.

Click Download JREs, in your install4j installation directory, will be more than a JREs folder, the inside of the compressed files extracted, and then this interface configuration can be

  1. In the seventh step, choose Exclude files,

    In the window you can filter the files that do not need to be generated, select No build, continue clicking Next

    ?

    ?

  2. To Finished interface point OK

  3. Click the upper right arrow to proceed to the next step

  4. First point to Test Build, and so on after execution,

  5. If you don't get an error, click Start Build

    Open the SMMs folder to see the EXE installation file just generated

    Now install it, test it.

    Open it and look.

    Completed the

    ?

    —————————————————— The following is blank —————————————————

INSTALL4J tools to package EXE for Java programs

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.