Export the jar package to EXE using EXE4J

Source: Internet
Author: User

exe4j How to use

This tool is a tool that wraps Java programs into EXE format files. (Click the Exe4j\bin\exe4j.exe file) to start as shown

If you are not registered, you can use this registration code: A-XVK209982F-1Y0I3H4YWX2H1

Please fill in your name and company name

Open the EXE4J application

Click "Next" Directly, then select "Regular mode" option, then click "Next"

Enter the short name of your application, such as Autoscannapp

Directory General Select the build directory of your EXE file

Executable directory This place fills in "." (point) The expression of a relative path, which is used more later, note

Click "Next"

Enter the executable file name (without the. exe) for example: Autoscannapp; Select the icon file location, tick the unchecked option, and leave the default. Click "Next"

Click the "+" plus sign to add classpath

Add Lib library (relative path)

Then add the program's class directory, our program is the bin directory can be.

Add Bin directory

Select Main class file

Program Auto Search main function

Select the main function file, then click "OK"

The final result, click "OK"

Here to fill in the requirements of the JRE environment, the minimum version, we have to use the 1.7 version of the method in the program code, so here to write a minimum of 1.7

Then click on "Next"

?

By default, click "Next" directly

Prompt language, because there is no Chinese, so directly select "Next"

After the completion, click ①, you can check the success of the executable file compilation;

Click ② to save the current setting as a project file for the next direct use.

Click "Exit" to exit the app. Then go to the output directory to test it. This mode requires that the Bin folder and the Lib folder under the original folder be copied over to use.

Export the jar package to EXE using 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.