IBM Support

Display Detailed Java Version Information

Troubleshooting


Problem

This document shows how you can get detailed version information about the version of Java being used.

Resolving The Problem

Use the following methods to get more detailed version information about the JDK being used.

If running on i5/OS V5R3, use the following commands:

QSH
java -Djava.version=1.4 PropDump

It will output alot of information, and the version will look like this:

...
os400.gc.heap.size.init=16384                                  
java.runtime.version=1.4.2_16-b05                             
java.awt.graphicsenv=com.ibm.as400.system.NoGraphicsEnvironment
...

If running on i5/OS V5R4 or V6R1, use the following commands:

QSH
java -Djava.version=1.4 -version

The output will be:

java version "1.4.2"                                                
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_16-b05)
Classic VM (build 1.4, build JDK-1.4, native threads, jitc_de)      
$

If running on IBM i V5R4 or beyond and using IBM Technology for Java JVM(J9), use the following commands:

QSH
export JAVA_HOME=/QOpenSys/QIBM/ProdData/JavaVM/jdk50/32bit
java -version

The output will be:

java version "1.5.0"                                                                            
Java(TM) 2 Runtime Environment, Standard Edition (build pap32devifx-20110211 (SR12 FP1 +IZ94331))
IBM J9 VM (build 2.3, J2RE 1.5.0 IBM J9 2.3 OS/400 ppc-32 j9vmap3223sr12-20100713 (JIT enabled)  
J9VM - 20100629_60535_bHdSMr                                                                    
JIT  - 20100623_16197_r8                                                                        
GC   - 20100211_AA)                                                                              
JCL  - 20100813

[{"Type":"MASTER","Line of Business":{"code":"LOB57","label":"Power"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SWG60","label":"IBM i"},"Platform":[{"code":"PF012","label":"IBM i"}],"Version":"6.1.0"}]

Historical Number

494565919

Document Information

Modified date:
11 November 2019

UID

nas8N1013546