IBM Support

5 Ways to Check WebSphere Java Version

How To


Summary

Java Versioning information can be obtained through various Commands, Interfaces, Dumps and Logs.

Objective

Verify Version Java Runtime Environment

Environment

WebSphere 8.x & 9.x

Steps

1.)  execute java -version or java -fullversion commands

a.)  java -version

  • The output provides the following information:
  • The first line indicates the Java standard edition class library level.
  • The second line includes information about the build level of the runtime environment. Service refresh (SR), fix pack (FP), and APAR (Interim fixes only) numbers are appended to the build string.
  • The third line indicates the build level of the Java virtual machine.
  • Subsequent lines provide detailed information about the levels of components that make up the runtime environment.
  • Exact build dates and versions change for service refreshes and fix packs.

b.) java -fullversion

  • The output only lists the build information for the runtime environment.

2.) execute manageSDK commands:

  • app_server_root/bin/managesdk -listAvailable -verbose
  • (Displays a list of all SDK names available to the product installation)

  • app_server_root/bin/managesdk -listEnabledProfile -profileName AppSrv02 -verbose
  • (Displays a list of all SDK names that a specified profile, and its node and servers, is currently configured to use)

  • app_server_root/bin/managesdk -listEnabledProfileAll -verbose
  • (Displays a list of all profiles in an installation and the SDK names that each profile, and its node and servers)
     

3.)  execute versioninfo -long command:

  • To receive not only information about the Installed Fixpacks, but also Interim Fixpacks (iFixes), also pertaining to Java.


4.)  Review Log Files:


a.)  Check SystemOut.log on Traditional Full Profile WebSphere for 'Start Display Current Environment, Java version ='.  Native_StdErr.log should also contain


b.)  Ceck Console.log & Messages.log in Liberty Profile for or 'java.version ='.

5.)  Generate a Javacore text dump and check section ENVINFO subcomponent dump routine for tag 1CIJAVAVERSION.

a.) from the Administrative Integrated Solutions Console:

  1. Navigate to Troubleshooting > Java dumps and cores
  2. Select the server(s) to collect dumps from
  3. Click on Java Core

b.) using javadump (server javadump <server_name>)

c.) using Unix (kill -3 PID) command

d.) using Windows CTRL+BREAK

e.) using WSAdmin command line interface:

  • Launch wsadmin from the bin directory of the application server profile (such as <WAS_HOME>\profiles\<PROFILE_NAME>\bin\wsadmin). Make sure you connect to the correct SOAP port for the application server or deployment manager.

  • Run the following commands:

1.)  JACL

set jvm [$AdminControl completeObjectName type=JVM,process=SERVER_NAME,*]

$AdminControl invoke $jvm dumpThreads

or

2.)  JYTHON

jvm = AdminControl.completeObjectName('type=JVM,process=SERVER_NAME,*')

AdminControl.invoke(jvm, 'dumpThreads')

Document Location

Worldwide

[{"Business Unit":{"code":"BU025","label":"IBM Cloud and Cognitive Software"},"Product":{"code":"SSEQTP","label":"WebSphere Application Server"},"Component":"","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF016","label":"Linux"},{"code":"PF033","label":"Windows"}],"Version":"All Versions","Edition":"WAS 8.x & 9.x"}]

Product Alias/Synonym

WAS;SDK

Document Information

Modified date:
19 November 2019

UID

ibm10957687