There may be more than one JAVA version installed on a WebSphere Application Server but only one JAVA version will be active at a time. Use the command managesdk to check and manage the JAVA SDK on WAS 8.5..5.x.
List all installed JAVA SDK
Use the below command to list all the versions of JAVA SDK installed on your server. There may be only one or maybe more. WAS 8.5.5.0 comes with JAVA SDK 6.0 i.e. 1.6.
[root@DEVWAS1 bin]# pwd /opt/IBM/WebSphere/AppServer/bin [root@DEVWAS1 bin]# ./managesdk.sh -listAvailable CWSDK1003I: Available SDKs : CWSDK1005I: SDK name: 1.8_64 CWSDK1005I: SDK name: 1.6_64 CWSDK1005I: SDK name: 1.7.1_64 CWSDK1001I: Successfully performed the requested managesdk task. [root@DEVWAS1 bin]#
Running version of JAVA SDK
Now use the below command to check the running version of the JAVA with profiles and dmgr.
[root@DEVWAS1 bin]# ./managesdk.sh -listEnabledProfileAll CWSDK1004I: Profile DeploymentManager : CWSDK1006I: PROFILE_COMMAND_SDK = 1.8_64 CWSDK1008I: Node CellManager01 SDK name: 1.8_64 CWSDK1009I: Server dmgr SDK name: 1.8_64 CWSDK1004I: Profile Profile01 : CWSDK1006I: PROFILE_COMMAND_SDK = 1.8_64 CWSDK1008I: Node DEVWAS1Node01 SDK name: 1.8_64 CWSDK1009I: Server nodeagent SDK name: 1.8_64 CWSDK1009I: Server Mem01 SDK name: 1.8_64 CWSDK1004I: Profile Profile02 : CWSDK1006I: PROFILE_COMMAND_SDK = 1.8_64 CWSDK1008I: Node DEVWAS1Node02 SDK name: 1.8_64 CWSDK1009I: Server nodeagent SDK name: 1.8_64 CWSDK1009I: Server Mem02 SDK name: 1.8_64 CWSDK1001I: Successfully performed the requested managesdk task. [root@DEVWAS1 bin]#
Note: WebSphere Application Server ND 8.5.5.12 running on Linux server.