Making a runtime use a different Java version
If your server has multiple versions of Java installed, you can force a runtime to change versions.
About this task
When installing a runtime, Java 8 or 11 is required.
Boomi internally tested the latests versions of Amazon Corretto OpenJDK Java and Amazon Corretto Open JDK.
It is recommended that you use the most recent version of Java that supports.
Procedure
-
Make a copy of the
inst_jre.cfgfile that is located in the<installation_directory>\.install4jdirectory. -
Name the new file
pref_jre.cfg. -
Delete the contents of the new
pref_jre.cfgfile and add the location of the JRE or JDK that the runtime should use.Using a Java 8 JRE on a Windows machine looks like this:
C:\Program Files\Java\jre8orC:\Program Files\jdk\jre. -
Save the file.
-
(For runtime clouds and runtime clusters that are running with MULTI_PROCESS, which enables forked execution) To specify the appropriate system properties in the atom.vmoptions file, do the following :
-
Go to Manage > Runtime Management.
-
Select the runtime from the list.
-
In Settings & Configuration, click Properties, and then click the Advanced tab.
-
Select the Java Class Path Prepend property (
-classpath/p), clickAdd a Property, and enter the location of the JRE or JDK.
-
Select the Java Library Path property (
-Djava.library.path), clickAdd a Property, and enter the location of the JRE or JDK.
-
-
Click Save.
Because changes to this property do not take effect until the runtime is restarted, you are prompted to restart. You have the option to restart now or restart later.
After the runtime is restarted, it should now use the version of Java that is in
C:\Program Files\Java\jre8orC:\Program Files\jdk\jre(if you changed it to use Java 8), depending on whether you want to use a JRE or a JDK.