10.1 How to Display the version of Java
Use the JAVA CLASS(*VERSION) command to display the required JDK version.
For the classic JDK set the 'java.version' property and for the IBM Technology JDK set the JAVA_HOME environment variable.
Default JDK
RMVENVVAR ENVVAR(JAVA_HOME)
JAVA CLASS(*VERSION)
Classic 1.4
RMVENVVAR ENVVAR(JAVA_HOME)
JAVA CLASS(*VERSION) PROP(('java.version' '1.4'))
Classic 1.5
RMVENVVAR ENVVAR(JAVA_HOME)
JAVA CLASS(*VERSION) PROP(('java.version' '1.5'))
Classic 1.6
RMVENVVAR ENVVAR(JAVA_HOME)
JAVA CLASS(*VERSION) PROP(('java.version' '1.6'))
IBM Technology 5.0 32-bit
ADDENVVAR ENVVAR(JAVA_HOME) VALUE('/QOpenSys/QIBM/ProdData/JavaVM/jdk50/32bit') REPLACE(*YES)
JAVA CLASS(*VERSION)
IBM Technology 5.0 64-bit
ADDENVVAR ENVVAR(JAVA_HOME) VALUE('/QOpenSys/QIBM/ProdData/JavaVM/jdk50/64bit') REPLACE(*YES)
JAVA CLASS(*VERSION)
IBM Technology 6.0 32-bit
ADDENVVAR ENVVAR(JAVA_HOME) VALUE('/QOpenSys/QIBM/ProdData/JavaVM/jdk60/32bit') REPLACE(*YES)
JAVA CLASS(*VERSION)
IBM Technology 6.0 64-bit
ADDENVVAR ENVVAR(JAVA_HOME) VALUE('/QOpenSys/QIBM/ProdData/JavaVM/jdk60/64bit') REPLACE(*YES)
JAVA CLASS(*VERSION)
IBM Technology 7.0 32-bit
ADDENVVAR ENVVAR(JAVA_HOME) VALUE('/QOpenSys/QIBM/ProdData/JavaVM/jdk70/32bit') REPLACE(*YES)
JAVA CLASS(*VERSION)
IBM Technology 7.0 64-bit
ADDENVVAR ENVVAR(JAVA_HOME) VALUE('/QOpenSys/QIBM/ProdData/JavaVM/jdk70/64bit') REPLACE(*YES)
JAVA CLASS(*VERSION)
IBM Technology 8.0 32-bit
ADDENVVAR ENVVAR(JAVA_HOME) VALUE('/QOpenSys/QIBM/ProdData/JavaVM/jdk80/32bit') REPLACE(*YES)
JAVA CLASS(*VERSION)
IBM Technology 8.0 64-bit
ADDENVVAR ENVVAR(JAVA_HOME) VALUE('/QOpenSys/QIBM/ProdData/JavaVM/jdk80/64bit') REPLACE(*YES)
JAVA CLASS(*VERSION)