Running JDBC and SQLJ programs

You run a JDBC or SQLJ program using the java command. Before you run the program, you need to ensure that the JVM can find all of the files that it needs.

About this task

These steps allow you to run a JDBC or SQLJ program.

Procedure

  1. Ensure that the program files can be found.
    • For an SQLJ program, put the serialized profiles for the program in the same directory as the class files for the program.
    • Include directories for the class files that are used by the program in the CLASSPATH.
  2. Run the java command on the z/OS® UNIX System Services command line, with the top-level file name in the program as the argument.

Example

To run a program that is in the EzJava class, add the directory that contains EzJava to the CLASSPATH. Then run this command:
java EzJava