EasyManuals Logo

IBM DB2 User Manual

IBM DB2
585 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #199 background imageLoading...
Page #199 background image
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

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the IBM DB2 and is the answer not in the manual?

IBM DB2 Specifications

General IconGeneral
DeveloperIBM
Initial Release1983
LicenseProprietary
Written inC, C++
CategoryDatabase Management System (RDBMS)
Operating SystemLinux, Windows
Programming LanguagesC, C++
Data ModelsRelational
EditionsCommunity, Standard, Advanced
Key Featureshigh availability, scalability