IBM Support

How to obtain Java build and version numbers

Question & Answer


Question

How do you obtain the Java build and version numbers for both Sun and IBM JRE and JDK versions when troubleshooting IBM Rational software issues, problems or errors?

Answer

Open a command prompt (Click Start > Run and type cmd).

  • For the JRE

Use jre at the command prompt. This will return the Java JRE version number that is found in your path.

For example:

C:\>jre
Java(tm) Runtime Loader Version 1.1.7.24o

  • For the JDK version

Use java -version at the command prompt to check the version of the JDK in your path.

For example:

C:\>java -version

java version "1.5.0_07"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_07-b03)
Java HotSpot(TM) Client VM (build 1.5.0_07-b03, mixed mode, sharing)


C:\Program Files\IBM\Java142\jre\bin>java -version
java version "1.4.2"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2)
Classic VM (build 1.4.2, J2RE 1.4.2 IBM Windows 32 build cn142-20060421 (SR5) (JIT enabled: jitc))
[{"Product":{"code":"SSSTY3","label":"Rational Customer Support"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"General Information","Platform":[{"code":"PF033","label":"Windows"}],"Version":"All Versions","Edition":"","Line of Business":{"code":"","label":""}}]

Document Information

More support for:
Rational Customer Support

Software version:
All Versions

Operating system(s):
Windows

Document number:
74663

Modified date:
16 June 2018

UID

swg21122207

Manage My Notification Subscriptions