Scalable Database Server, HiRDB Version 8 UAP Development Guide

[Contents][Index][Back][Next]

17.1.2 Environment setup

Before you use the JDBC driver to execute UAPs, you must specify the installed file in the OS's CLASSPATH environment variable. Also, before you compile a UAP you must set up the CLASSPATH environment variable in order to directly manipulate the classes provided by the JDBC driver, which is necessary for the methods provided by the JDBC driver that do not comply with the JDBC standards.

If you are using the JDBC driver from an application server, such as Cosminexus, the environment setup depends on the environment setup for the application server. Refer to the documentation for the particular application server, and check the specifications.

Organization of this subsection
(1) UNIX environment
(2) Windows environment (executing the program from the command prompt)

(1) UNIX environment

(a) Bourne shell
 
CLASSPATH=${CLASSPATH}:/HiRDB/client/lib/pdjdbc2.jar
export CLASSPATH
 

Note
The underlined portion indicates the HiRDB installation directory.
(b) C shell
 
setenv CLASSPATH ${CLASSPATH}:/HiRDB/client/lib/pdjdbc2.jar
 

Note
The underlined portion indicates the HiRDB installation directory.

(2) Windows environment (executing the program from the command prompt)

 
set CLASSPATH=%CLASSPATH%;C:\Program Files\HITACHI\HiRDB\client\utl\pdjdbc2.jar
 

Note
The underlined portion indicates the HiRDB installation directory.