Verifying the Java installation using sample programs

This topic describes how to run the "Hello World" and "Hello CICS World" sample programs to verify that Java has been successfully installed and set up in a CICS region.

Before you begin to run the Java sample programs, verify that the Java supplied components are correctly installed in your CICS region. Use the checklist provided in The CICS® Transaction Server for z/OS® Installation Guide.
To verify your Java installation, follow the steps below to set up and run the supplied sample programs.
  1. Build the sample programs using the following steps:
    1. Define the environment variables PATH, CICS_HOME and JAVA_HOME. Instructions on what to define for each variable are described in Building the JCICS sample programs.
    2. Install the group DFH$JVM in order to run the samples.
    3. Build the Java samples, as described in Building the Java samples.
  2. Add $CICS_HOME/samples/dfjcics to the end of the Java™ classpath, ibm.jvm.shareable.application.class.path, in the default JVM properties file, dfjjvmpr.props.
  3. Run the Hello World samples using the steps outlined in Running the Hello World samples
If you have any problems running the Java sample programs, do the following: