if you want to change the JDK version used on our local
jdeveloper Two things need to be done
- Change the jdk version of Jdeveloper for compilation
- Change the JDK version of Integrated weblogic servers.
Changing the JDK version of jdeveloper
- Go to MIDDLEWAREHOME\jdeveloper\jdev\bin
- open jdev.conf in notepad
- edit below line to point to new JDK version and save file
SetJavaHome C:\Oracle\Middleware\jdk1.7.0_79
restart jdeveloper and go to help-->about-->version tab to see new jdk version as shown in below screenshot
Changing the JDK version of Integrated Weblogic server
- go to default domain folder of local weblogic server .e.g path C:\Users\XXXX\AppData\Roaming\JDeveloper\system11.1.1.9.40.66.73\DefaultDomain\bin
- Open setDomainEnv.cmd (Windows)/setDomainEnv.sh file (Linux)(.cmd for Windows)
- replace the SUN_JAVA_HOME and JAVA_HOME with new JDK version path as shown below
#set SUN_JAVA_HOME=C:\Oracle\Middleware\jdk160_29
set SUN_JAVA_HOME=C:\Oracle\Middleware\jdk1.7.0_79
if "%JAVA_VENDOR%"=="Oracle" (
set JAVA_HOME=%BEA_JAVA_HOME%
) else (
if "%JAVA_VENDOR%"=="Sun" (
set JAVA_HOME=%SUN_JAVA_HOME%
) else (
set JAVA_VENDOR=Sun
set JAVA_HOME=C:\Oracle\Middleware\jdk1.7.0_79
)
)
restart local weblogic server .While server is starting the new JDK path will show in logs as below