You can override the default JVM used by CICS® Transaction Gateway.
By default, CICS Transaction Gateway uses the JVM which is installed in <install_path>/jvm17. You can override the default java as described below
To set the JVM used by CICS Transaction Gateway, use the ctgjava command from an administrator level command prompt.
ctgjava -s=jvmlocation
where jvmlocation is the fully qualified path name of the Java™ executable file.
ctgjava -s="C:/Program Files/IBM/CICS Transaction Gateway/jvm17/bin/java.exe"
ctgjava -v
To have a JVM selected automatically:
ctgjava -a
export CTG_JAVA=/opt/IBM/cicstg/jvm17/bin/java
export CTG_JAVA=/opt/ibm/cicstg/jvm17/bin/java