Updating the JDK Location in an Existing Domain Home
You must search the references to the current JDK manually, and replace those instances with the location of the new JDK.
You can use the grep
or findstr
commands to search for the jdk-related references.
You’ll likely be required to update the location of JDK in the following three files:
(Linux) DOMAIN_HOME/bin/setNMJavaHome.sh
(Windows) DOMAIN_HOME\bin\setNMJavaHome.cmd
(Linux) DOMAIN_HOME/nodemanager/nodemanager.properties
(Windows)DOMAIN_HOME\nodemanager\nodemanager.properties
(Linux) DOMAIN_HOME/bin/setDomainEnv.sh
(Windows)DOMAIN_HOME\bin\setDomainEnv.cmd