step:
1. Open the installation directory and find the setDomainEnv.cmd file.
JDK configuration file location:
D:\Oracle\Weblogic\user_projects\domains\domain\bin\setDomainEnv.cmd
Open the setDomainEnv.cmd file.
2. Modify the properties and specify the new JDK path
The modification positions are probably around lines 41 and 54.
The JDK version in the picture is 1.6.
The modified JDK version is 1.8. Modify the set SUN_JAVA_HOME in line 41 and the JAVA_HOME attribute value in line 54 to the new JDK path.
Just specify it to the JDK root directory, there is no need to go to the bin directory under the JDK.
set SUN_JAVA_HOME=D:\JDK\jdk1.8
JAVA_HOME= D:\JDK\jdk1.8
After modification:
3. Restart WebLogic.
After modifying the JDK path, WebLogic needs to be restarted to take effect.