Obtaining and Verifying Suitable JRE
Sonatype provides distributions for Unix, OSX, and Windows with runtime environments for the specific operating system on the Nexus Repository Downloads page.
Sonatype provides a JVM with our Unix archive as of release 3.78.0
Java compatibility information is available in the System Requirements and Java Compatibility Matrix.
To use an external runtime, set the path for a specific Java location in the bin/nexus
script. Uncomment and update the following property.
INSTALL4J_JAVA_HOME_OVERRIDE=/usr/lib/jvm/openjdk-17
This path overrides the embedded JVM.
When the variable provides no value, the nexus.rc
file in the bin directory is checked for the app_java_home
property.
The $app_home/.install4j/pref_jre.cfg
is no longer supported to override the JVM.