Essential Tips for Optimizing Your Java Environment Settings

Essential Tips for Optimizing Your Java Environment Settings

Daniel Lv8

Essential Tips for Optimizing Your Java Environment Settings

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

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 .

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.

https://techidaily.com

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.

https://techidaily.com

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:

https://techidaily.com

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: Essential Tips for Optimizing Your Java Environment Settings
  • Author: Daniel
  • Created at : 2024-10-07 21:00:35
  • Updated at : 2024-10-10 22:39:38
  • Link: https://fox-pages.techidaily.com/essential-tips-for-optimizing-your-java-environment-settings/
  • License: This work is licensed under CC BY-NC-SA 4.0.