Chapter 6. Preparing and running JDBC and SQLJ programs
DB2 for z/OS Java programs run in the z/OS UNIX System Services environment.
The following topics contain information about preparing and running Java
programs.
Program preparation for JDBC programs
Preparing a Java program that contains only JDBC methods is the same as
preparing any other Java program. You compile the program using the javac
command. No precompile or bind steps are required.
For example, to prepare the Sample01.java program for execution, execute this
command from the /usr/lpp/db2910_jdbc/ directory:
javac Sample01.java
Related tasks
“Preparing Java routines with no SQLJ clauses to run from a JAR file” on page
187
“Preparing Java routines with no SQLJ clauses and no JAR file” on page 188
Program preparation for SQLJ programs
Program preparation for SQLJ programs involves translating, compiling,
customizing, and binding the program.
The following figure shows the steps of the program preparation process for a
program that uses the IBM Data Server Driver for JDBC and SQLJ.
© Copyright IBM Corp. 1998, 2008 183