Updating the JDK Location in an Existing Domain Home
You must search the references to the current JDK, for example 1.8.0_191 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) Start bash
and then run DOMAIN_HOME/bin>source setDomainEnv.sh
(Windows)DOMAIN_HOME\bin\setDomainEnv.cmd