Ultimate Guide: Mastering Java Configuration Options

Ultimate Guide: Mastering Java Configuration Options

Michael Lv8

Ultimate Guide: Mastering Java Configuration Options

Table of Contents

Disclaimer: This post includes affiliate links

If you click on a link and make a purchase, I may receive a commission at no extra cost to you.

Java Settings

https://techidaily.com

Package with Bundled JRE

For Java Products , you can bundle a JRE into your installation at build time. If your installation package includes a JRE bundle, the installed Java Product will use the bundle over any JRE version installed on the target machine.

In order to bundle a JRE with your build use the [Add JRE Bundle… ] button.

Java settings tab

https://techidaily.com

NoteFor the Mac OS build, only Java Products using Oracle VM support JRE bundling. You can change the MacOS VM provider from Mac OS X settings Tab .

https://techidaily.com

NoteFor the Mac OS build you can bundle only the JRE installed by the JDK. So you should first install the JDK on a Mac machine and then pick its installation folder when using the [Add JRE Bundle… ] button.

ImportantWhen none of the Java Products, included in the Mac OS X build, is self-contained (all of its application files are added under Product Section ) a JRE bundle cannot be included in the Mac OS X build.

Compression

Use Pack200 to compress the JAR files

Pack200 is a method to compress JAR files very efficiently. You can find more details on the Pack200 page .

Only from JRE bundle

You can use this option if you want to be packed using Pack200 only the JAR files from the JRE bundled with your application.

Verify JAR files signature before and after packing

When you are using this option, the JAR signature is verified not to be broken during packing. The files whose signature is broken will not be compressed with Pack200.

NoteThe Verify JAR signature option requires JDK installed on your development machine and the JDK installation folder to be specified in the External Tools settings.

Below there is a short video to visually discover this functionality:

Topics

  • JRE Bundle
    Specify the JRE version to be bundled with your application

Did you find this page useful?

Please give it a rating:

Thanks!

Report a problem on this page

Information is incorrect or missing

Information is unclear or confusing

Something else

Can you tell us what’s wrong?

Send message

Also read:

  • Title: Ultimate Guide: Mastering Java Configuration Options
  • Author: Michael
  • Created at : 2024-10-09 08:14:10
  • Updated at : 2024-10-11 09:13:13
  • Link: https://fox-making.techidaily.com/ultimate-guide-mastering-java-configuration-options/
  • License: This work is licensed under CC BY-NC-SA 4.0.