WebSphere8.5.5.2 modify the default Java version JDK7

Default in WebSphere8.5.5.2 using JDK6, if you want to upgrade to JDK7, you can use the following method.

Look at existing WebSphere version JDK

# cd /opt/IBM/WebSphere/AppServer/profiles/AppSrv01
# bin/managesdk.sh -listAvailable
CWSDK1003I: Available SDKs :
CWSDK1005I: SDK name: 1.6_64
CWSDK1005I: SDK name: 1.7.1_64
CWSDK1001I: Successfully performed the requested managesdk task.

Switching JDK

# bin/managesdk.sh -enableProfile -profileName AppSrv01 -sdkName 1.7.1_64 -enableServers

或

# bin/managesdk.sh -enableProfileAll -sdkName 1.7.1_64 -enableServers

After the switch, remember to restart each service.


Start Service

cd /opt/IBM/WebSphere/AppServer/profiles/
AppSrv01/bin/startNode.sh
Dmgr01/bin/startManager.sh

Stop Service

cd /opt/IBM/WebSphere/AppServer/profiles/
Dmgr01/bin/stopManager.sh
AppSrv01/bin/stopNode.sh

Guess you like

Origin blog.csdn.net/weixin_33720956/article/details/90948097