How to set up the JRE installation directory (on MacOS)

install4j can easily associate a JRE with an application. On Windows (and Linux), JRE is installed in the jre subdirectory (applications). On MacOS, this is similar to .install4j / jre.bundle

How to configure install4j to host JRE in jre directory? This seems to be the default location for any underlying RCP application. It would be nice if this directory could be used for a related JRE.

+3
source share
1 answer

The location of the JRE package is not currently regulated. However, you can use the Move Files and Directories action to move the JRE to another location after running the Install Files action. In this case you need to call

String newJreHome = ...;
JVMSelector.setPreferredJVM(newJreHome);

JRE .

+2

All Articles