IBM Support

Which Java version is my WebSphere Application Server V8.5 using?

Technical Blog Post


Abstract

Which Java version is my WebSphere Application Server V8.5 using?

Body

 

In one of Vish's blogs, he explains how to install the optional Java 7.x on WebSphere Application Sever 8.5:

 

Installing optional Java 7.x on WebSphere Application Server 8.5
/support/pages/node/1081107

 

Once it is installed, however how can you tell which version of Java is actually being used?  You can look at the SystemOut.log header, but the output may be a little bit confusing.  Here are some examples to help clarify what the output means:

 

SystemOut.log:

 

1)  Using Java 6 with no Java 7 package installed (default)

************ Start Display Current Environment ************
WebSphere Platform 8.5.5.0 [ND 8.5.5.0 gm1319.01] running with process name
Host Operating System is Windows 7, version 6.1
Java version = 1.6.0, Java Compiler = j9jit26, Java VM name = IBM J9 VM
was.install.root = C:\Program Files\IBM\WASND85
user.install.root = C:\Program Files\IBM\WASND85\profiles\AppSrv01
Java Home = C:\Program Files\IBM\WASND85\java\jre
ws.ext.dirs = C:\Program Files\IBM\WASND85/java/lib;C:\Program Files\IBM\WAS
Classpath = C:\Program Files\IBM\WASND85\profiles\AppSrv01/properties;C:\Pro
Java Library path = C:\Program Files\IBM\WASND85/lib/native/win/x86_64/;C:\P
Orb Version = IBM Java ORB build orb626-20130112.01
************* End Display Current Environment *************

 

<Next Step: Install Java7 package via Installation Manager>

 

2) Using Java 6 with the optional Java 7 package installed but not yet enabled


************ Start Display Current Environment ************
WebSphere [IBMJAVA7 7.0.4.1 gm1318.03]Platform 8.5.5.0 [ND 8.5.5.0 gm1319.01] running with process name
Host Operating System is Windows 7, version 6.1
Java version = 1.6.0, Java Compiler = j9jit26, Java VM name = IBM J9 VM
was.install.root = C:\Program Files\IBM\WASND85
user.install.root = C:\Program Files\IBM\WASND85\profiles\AppSrv01
Java Home = C:\Program Files\IBM\WASND85\java\jre
ws.ext.dirs = C:\Program Files\IBM\WASND85/java/lib;C:\Program Files\IBM\WASND85\profiles\AppSrv01/class
Classpath = C:\Program Files\IBM\WASND85\profiles\AppSrv01/properties;C:\Program Files\IBM\WASND85/prope
Java Library path = C:\Program Files\IBM\WASND85/lib/native/win/x86_64/;C:\Program Files\IBM\WASND85\jav
Orb Version = IBM Java ORB build orb626-20130112.01
************* End Display Current Environment *************

 

<Next Step:  Use "managesdk.bat" to change to Java7>

 

Steps to switch over to the use of Java 7:


C:\Program Files\IBM\WASND85\profiles\AppSrv01\bin>managesdk.bat -listAvailable
CWSDK1003I: Available SDKs :
CWSDK1005I: SDK name: 1.6_64
CWSDK1005I: SDK name: 1.7_64
CWSDK1001I: Successfully performed the requested managesdk task.

C:\Program Files\IBM\WASND85\profiles\AppSrv01\bin>managesdk.bat -enableProfileAll -sdkname 1.7_64 -enableServers
CWSDK1017I: Profile AppSrv01 now enabled to use SDK 1.7_64.
CWSDK1001I: Successfully performed the requested managesdk task.

 


3) Using Java 7


************ Start Display Current Environment ************
WebSphere [IBMJAVA7 7.0.4.1 gm1318.03]Platform 8.5.5.0 [ND 8.5.5.0 gm1319.01] running with process name
Host Operating System is Windows 7, version 6.1
Java version = 1.7.0, Java Compiler = j9jit26, Java VM name = IBM J9 VM
was.install.root = C:\Program Files\IBM\WASND85
user.install.root = C:\Program Files\IBM\WASND85\profiles\AppSrv01
Java Home = C:\Program Files\IBM\WASND85\java_1.7_64\jre
ws.ext.dirs = C:\Program Files\IBM\WASND85/java_1.7_64/lib;C:\Program Files\IBM\WASND85\profiles\AppSrv0
Classpath = C:\Program Files\IBM\WASND85\profiles\AppSrv01/properties;C:\Program Files\IBM\WASND85/prope
Java Library path = C:\Program Files\IBM\WASND85/lib/native/win/x86_64/;C:\Program Files\IBM\WASND85\jav
Orb Version = IBM Java ORB build orb70-20130112.01
************* End Display Current Environment *************

 

 

title image (modified) credit: (cc) Some rights reserved by freeimages.com

 

[{"Business Unit":{"code":"BU004","label":"Hybrid Cloud"},"Product":{"code":"","label":""},"Component":"","Platform":[{"code":"","label":""}],"Version":"","Edition":""}]

UID

ibm11081083