Specifying the JVM

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>/jvm170. You can override the default java as described below.

Windows

To set the JVM used by CICS Transaction Gateway, use the ctgjava command from an administrator level command prompt.

Use the ctgjava command to specify which JVM CICS Transaction Gateway uses:
ctgjava -s=jvmlocation

where jvmlocation is the fully qualified path name of the Java™ executable file.

If the path name contains spaces, enclose it in quotation marks. For example:
ctgjava -s="C:/Program Files/IBM/CICS Transaction Gateway/jvm170/bin/java.exe"
To check which JVM CICS Transaction Gateway uses:
ctgjava -v

To have a JVM selected automatically:

ctgjava -a

UNIX and Linux

Use the environment variable CTG_JAVA to specify the JVM used by the CICS Transaction Gateway. When you specify CTG_JAVA you must specify the full path and name of the Java launcher program. For example:
  • IBM® AIX®
    export CTG_JAVA=/opt/IBM/cicstg/jvm170/bin/java
  • Linux®
    export CTG_JAVA=/opt/ibm/cicstg/jvm170/bin/java