How to change the java version in weblogic 10.3 (10gR3)?

10,521

Update the ${DOMAIN_HOME}/bin/setDomain.sh to set the JVM that you need. You should concider recompile your web app with the good jdk.

Share:
10,521
Devendra Singh
Author by

Devendra Singh

Updated on June 04, 2022

Comments

  • Devendra Singh
    Devendra Singh almost 2 years

    I am using Weblogic 10gR3. I have webappliation built using netbeans and compiled on java 1.7. When deployed on the server I get the error.

    Weblogic Deployment error

    I searched the net and found probable cause to be version mismatch. When checked I found java 1.6 installed on weblogic.Weblogic version.

    I tried changing it in \bea\wlserver_10.3\common\bin\commEnv but still not changed.

  • Devendra Singh
    Devendra Singh almost 8 years
    Got it working... In setDomainEnv.sh it is SUN_JAVA_HOME=C:/Program Files/Java/jdk1.7.0_79 In commEnv.sh it is JAVA_HOME="C:/Program Files/Java/jdk1.7.0_79" The difference is I had put SUN_JAVA_HOME in quotations, after I removed them it worked fine. (not sure why its difference in interpretation ) . Marking this as answer because Domain.sh also need to be changed to JAVA_HOME new version.