If you are not familiar with how WebSphere integrates with Java, refer to Getting Started with Java on WebSphere.
The managesdk.bat (Windows) or managesdk.sh (Linux) command with the -listAvailable option will list the available versions of Java SDK that are installed on the server. In this example, there are two versions of Java SDK on the server, 1.7_64 and 1.8_64.
AVOID TROUBLE
If you are prompted for a username and password, refer to username password and the soap.client.props sas.client.props ipc.client.props files.
~]# ${WAS_INSTALL_ROOT}/bin/managesdk.sh -listAvailable
CWSDK1003I: Available SDKs :
CWSDK1005I: SDK name: 1.7_64
CWSDK1005I: SDK name: 1.8_64
CWSDK1001I: Successfully performed the requested managesdk task.
The -verbose flag should return something like this. This information is stored in the ${WAS_INSTALL_ROOT}/profiles/your_profile/config/cells/your_cell/nodes/your_node/node-metadata.properties file and the base installation directory for Java (com.ibm.websphere.sdk.location.<version>) stored in the JAVA_LOCATION_<version> environment variable which is in the ${WAS_INSTALL_ROOT}/profiles/your_profile/config/cells/your_cell/nodes/your_node/variables.xml file.
~]# ${WAS_INSTALL_ROOT}/bin/managesdk.sh -listAvailable -verbose
CWSDK1003I: Available SDKs :
CWSDK1005I: SDK name: 1.7_64
- com.ibm.websphere.sdk.version.1.7_64=1.7
- com.ibm.websphere.sdk.bits.1.7_64=64
- com.ibm.websphere.sdk.location.1.7_64=${WAS_INSTALL_ROOT}/java_1.7
- com.ibm.websphere.sdk.platform.1.7_64=linux
- com.ibm.websphere.sdk.architecture.1.7_64=x86_64
- com.ibm.websphere.sdk.nativeLibPath.1.7_64=${WAS_INSTALL_ROOT}/lib/native/linux/x86_64/
CWSDK1005I: SDK name: 1.8_64
- com.ibm.websphere.sdk.version.1.8_64=1.8
- com.ibm.websphere.sdk.bits.1.8_64=64
- com.ibm.websphere.sdk.location.1.8_64=${WAS_INSTALL_ROOT}/java
- com.ibm.websphere.sdk.platform.1.8_64=linux
- com.ibm.websphere.sdk.architecture.1.8_64=x86_64
- com.ibm.websphere.sdk.nativeLibPath.1.8_64=${WAS_INSTALL_ROOT}/lib/native/linux/x86_64/
CWSDK1001I: Successfully performed the requested managesdk task.
Did you find this article helpful?
If so, consider buying me a coffee over at