IBM Support

Tips on supporting multiple server profiles for different JDK versions in WebSphere® Application Server version V8.5

Question & Answer


Question

How do I manage server profiles when there is more than one JDK version with WebSphere® Application Server version V8.5?

Cause

Java 7 is packaged as an extension offering to the WebSphere Application Server 8.5. You need to include the additional repository in IBM Installation Manager. Then you can select the "IBM SDK Java(TM) Technology Edition Version 7.0 for WebSphere" in addition to the WebSphere Application Server 8.5 installation.


32-bit machine 64-bit machine
Java 7 locationWAS_HOME\java_1.7_32 WAS_HOME\java_1.7_64
Java 7 propertiesWAS_HOME\properties\sdk\1.7_32.propertiesWAS_HOME\properties\sdk\1.7_64.properties
Java 6 location (default)WAS_HOME\java WAS_HOME\java
Java 6 propertiesWAS_HOME\properties\sdk\1.6_32.propertiesWAS_HOME\properties\sdk\1.6_64.properties

Answer

WebSphere Application Server supports pluggable SDK.
In the WAS_HOME\bin directory, there is a managesdk batch file that you can use to switch SDKs.


Run "managesdk -help" for more details


To list JRE level for all profiles: "managesdk -listEnabledProfileAll"


32 bit machine64 bit machine
create New Java 7 profile
  • cd WAS_HOME\bin
  • Run managesdk -setNewProfileDefault -sdkName 1.7_32
  • create a new profile
(ProfileManagement\pmt.bat)
  • cd WAS_HOME\bin
  • Run managesdk -setNewProfileDefault -sdkName 1.7_64
  • create a new profiile (ProfileManagement\pmt.bat)
Switch to a JRE 1.7 for profile AppSrv01
  • use "managesdk -enableProfile -sdkName 1.7_32 -profileName AppSrv01"
  • use "managesdk -enableProfile -sdkName 1.7_64 -profileName AppSrv01"




[{"Product":{"code":"SSRTLW","label":"Rational Application Developer for WebSphere Software"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Integrated Test Environment","Platform":[{"code":"PF033","label":"Windows"}],"Version":"8.5","Edition":"Enterprise","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
16 June 2018

UID

swg21597137