1. 将jdk-7u80-linux-x64.tar.gz在服务器上解压,记住目录如:/home/haieradmin/jvm/jdk1.7.0_80

  2. 进入到${user_domain}/bin目录,如:/home/weblogic/domains/weblogic_domain/bin

  3. 找到setDomainEnv.sh文件,备份文件cp setDomainEnv.sh setDomainEnv.sh.bak

  4. 编辑文件,执行vim setDomainEnv.sh

    将以下代码中标红部分

    WL_HOME="/home/pass/Oracle/Middleware/wlserver_10.3"
    export WL_HOME

    BEA_JAVA_HOME="/home/weblogic/Oracle/Middleware/jrockit_160_29_D1.2.0-10"
    export BEA_JAVA_HOME

    SUN_JAVA_HOME=""
    export SUN_JAVA_HOME

    if [ "${JAVA_VENDOR}" = "Oracle" ] ; then
            JAVA_HOME="${BEA_JAVA_HOME}"
            export JAVA_HOME
    else
            if [ "${JAVA_VENDOR}" = "Sun" ] ; then
                    JAVA_HOME="${SUN_JAVA_HOME}"
                    export JAVA_HOME
            else
                    JAVA_VENDOR="Oracle"
                    export JAVA_VENDOR
                    JAVA_HOME="/home/weblogic/Oracle/Middleware/jrockit_160_29_D1.2.0-10"
                    export JAVA_HOME
            fi
    fi



修改成如下代码

WL_HOME="/home/weblogic/Oracle/Middleware/wlserver_10.3"
export WL_HOME

BEA_JAVA_HOME=""
export BEA_JAVA_HOME

SUN_JAVA_HOME="/home/weblogic/jvm/jdk1.7.0_80"
export SUN_JAVA_HOME

if [ "${JAVA_VENDOR}" = "Oracle" ] ; then
        JAVA_HOME="${BEA_JAVA_HOME}"
        export JAVA_HOME
else
        if [ "${JAVA_VENDOR}" = "Sun" ] ; then
                JAVA_HOME="${SUN_JAVA_HOME}"
                export JAVA_HOME
        else
                JAVA_VENDOR="Sun"
                export JAVA_VENDOR
                JAVA_HOME="/home/weblogic/jvm/jdk1.7.0_80"
                export JAVA_HOME
        fi
fi


修改完成后保存,将管理节点及被管节点重启即可,如果有被管节点在其他服务器上,需同时在对应服务器执行上述操作。

注:据了解weblogic 10.3.6与JDK1.7有兼容性问题,请移步查看本博客中的

http://rhelanker.blog.51cto.com/12834161/1958875