Different java jdk versions per server in WebLogic

Did you ever need to run multiple Java versions on one WebLogic instance? If yes, here is example how I done it in my environment with jdk1.7.0_25 & jdk1.8.0_102.  

## Locate setDomainEnv.sh 

if [ "${VM_TYPE}" = "JRockit" ] ; then
JAVA_HOME="${BEA_JAVA_HOME}"
export JAVA_HOME
else
if [ "${JAVA_VENDOR}" = "Sun" ] ; then
JAVA_HOME="${SUN_JAVA_HOME}"
export JAVA_HOME
elif [ "${JAVA_VENDOR}" = "Oracle" ] ; then
JAVA_VENDOR="Oracle"
export JAVA_VENDOR
JAVA_HOME="/usr/java/jdk1.7.0_25"
export JAVA_HOME
VM_TYPE="HotSpot"
export VM_TYPE
else
JAVA_VENDOR="Oracle8"
export JAVA_VENDOR
JAVA_HOME="/usr/java/jdk1.8.0_102"
export JAVA_HOME
VM_TYPE="HotSpot"
export VM_TYPE

fi
fi

## Go to WebLogic console and define your new Java Home as well as Java Vendor under 

Domain_name -> Environment -> Servers -> [server_name] -> Configuration -> Server Start:
Java Home: /usr/java/jdk1.8.0_102
Java Vendor: Oracle8
, , ,

Post navigation

Leave a Reply

Your email address will not be published. Required fields are marked *