Encapsulating jar Packages as exe files using winrar

Source: Internet
Author: User
Procedure: 1. Prepare the following documents:

Icon file: Icon.ico

Run File: Run.bat

Java Runtime Environment: JRE (folder)

Run the jar package

Where the contents of the Run.bat file are:

Start Jre1.8.0_152\bin\javaw.exe-dfile.encoding=utf-8-jar Medicalassistanthxpc.jar

Includes boot with Javaw.exe, encoding format not utf-8, run jar file is Medicalassistanthxpc.jar (replaceable JRE folder, jar file)

2.

3. Select the self-extracting option (X) in the advanced selection

4.

In the setup after the extraction run in the input Run.bat

Tick unpack to Temp folder in the mode and tick hide all

Select icon

5. Generating EXE files

Description

This is actually open exe that decompression, after decompression run Run.bat,run.bat content is to use the JRE javax run jar file.

Although adding a JRE adds volume, it can be run without a JRE.

Encapsulating jar Packages as exe files using winrar

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.