Nexus Repository Manager 3 on Windows bundles its own JRE. If you want to update to a different version of Java you will need to override the version shipped with Nexus.
You can do that as follows:
- In the installation directory there is a .install4j directory
- In this directory create a file named pref_jre.cfg if it does not exist.
- In the file put the complete path to the root directory ( JAVA_HOME ) of the Java installation you want to use.
Example:
C:/Program Files/Java/jre1.8.0_181
You will need to restart Nexus for this change to take effect.