Showing posts with label Change Jdeveloper JDK version. Show all posts
Showing posts with label Change Jdeveloper JDK version. Show all posts

Monday, February 17, 2020

Change the Jdeveloper JDK version


if you want to change the JDK version used on our local jdeveloper Two things need to be done

  1. Change the jdk version of Jdeveloper for compilation
  2. Change the JDK version of Integrated weblogic servers.

Changing the JDK version of jdeveloper

  1. Go to MIDDLEWAREHOME\jdeveloper\jdev\bin
  2. open jdev.conf in notepad
  3. 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


  1. 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
  2. Open setDomainEnv.cmd (Windows)/setDomainEnv.sh file (Linux)(.cmd for Windows)
  3. 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