18.1.2 Environment settings

The environment variable settings required for SQLJ operation are shown below. Since SQLJ uses the JDBC driver, environment settings for the JDBC driver must also be specified.

Organization of this subsection
(1) Environment settings for the UNIX version
(2) Environment settings in the Windows version

(1) Environment settings for the UNIX version

Set the following information in the environment variables for the execution environment.

(a) HiRDB/Developer's Kit

CLASSPATH=$CLASSPATH:[installation-directory]/pdsqlj.jar*

* For the 32-bit mode HP-UX (IPF) version, specify pdsqlj32.jar.
(b) HiRDB/Run Time

CLASSPATH=$CLASSPATH:[installation-directory]/pdruntime.jar1
CLASSPATH=$CLASSPATH:[installation-directory]/pdnativert.jar2

Note
When using the 32-bit mode HP-UX (IPF) version, do not specify the following pairs of files at the same time:
  • pdsqlj.jar and pdsqlj32.jar
  • pdruntime.jar and pdruntime32.jar
  • pdnativert.jar and pdnativert32.jar
1 For the 32-bit mode HP-UX (IPF) version, specify pdruntime32.jar.
2 For the 32-bit mode HP-UX (IPF) version, specify pdnativert32.jar.

(2) Environment settings in the Windows version

In sequence, choose Control Panel, System, System Properties, and Environment, and then set the contents shown below.

(a) HiRDB/Developer's Kit

CLASSPATH=%CLASSPATH%;[installation-directory]\pdsqlj.jar

(b) HiRDB/Run Time

CLASSPATH=%CLASSPATH%;[installation-directory]\pdruntime.jar
CLASSPATH=%CLASSPATH%;[installation-directory]\pdnativert.jar