Java package to generate exe (use exe4j and inno setup)

Source: Internet
Author: User

Java package to generate exe to generate jar first use eclipse to generate executable jar [the executable jar contains more comprehensive content, including the specified main class. mf] use of Exe4j must be executable jar for packaging. Select Regular mode for Project type (generally in jar package mode) Application info and enter a release directory (the root directory of the relative path following this path) executable info fill in Executable file name Java invocation configuration classpath to add running jar and all jar called by the jar (you can add a directory) Select Main class can not be packaged, you can directly copy all the files to spread them (the so-called green version ). Even after being packaged as an exe using the following method, the installed file is actually the same as the original file, which is essentially a compression and decompression. Use the new empty script of Inno setup-enter basic information to specify the main program execution program of the application and add other application files. This is the jar to be executed (especially important ), jar folder and jre folder to be used. [Note: You need to put all the resource files in a folder, for example, config, and then add the config folder. To add a folder, add files in the folder .] Enter the following information as needed, and finally compile (generate the installation package ). Note: (1) the relative path of the exe running after the exe installation must be consistent with that of other supported libraries (2) the Class path is relative to the release path (Distribution source directory) in step 3. The configuration includes your own jar and the jar is used. (3) jre configuration creates a folder ibe in the Search sequence of jre. Create an Identity folder in ibe, including jre (bin and lib) resource (configuration file and other resource files) lib (third-party class library to be used) Identity. jar identity.exe (generated using exe4j) Create .exe 4j in ibe( the relative path is based on the release path set in step 3) and. the iss file is operated in sequence (the entire file content is imported, excluding folders ). Ico production http://ico.55.la/online generation first a png and other types of pictures and then upload, generally choose 32*32 ico pictures, click to download save ico file Exe4j download and install the registration code: a-XVK258563F-1p4lv7mg7sav A-XVK209982F-1y0i3h4ywx2h1 A-XVK267351F-dpurrhnyarva A-XVK204432F-1kkoilo1jy2h3r A-XVK246130F-1l7msieqiwqnq A-XVK249554F-pllh351kcke50 A-XVK238729F-25yn13iea25i A-XVK222711F-134h5ta8yxbm0 A-XVK275016F-15wjjcbn4tpj

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.