Setting up system environment for running the Sample

Table of Contents 

The following document describes the steps required to set the environment in the following platforms:-

Windows

This section describes the steps required to set the environment to run the sample on Windows platform.

1. set JAVA_HOME environment variable to point your JDK - 1.3 installation directory.  

set JAVA_HOME=<JAVA_HOME>

for example,
D:\> set JAVA_HOME=d:\jdk1.3


2. Add <JAVA_HOME>\bin to system PATH.

set PATH=<JAVA_HOME>\bin;%PATH%

for example,
D:\> set PATH=%JAVA_HOME%\bin;%PATH%


3. Set JDBC_LIB environment variable to point to the directory where the Oracle JDBC driver file exists.

set JDBC_LIB=<JDBC_LIB>

for example,
D:\> set JDBC_LIB=d:\oracle\jdbc\lib

4. Set SQLJ_LIB environment variable to point to the directory where the Oracle SQLJ translator and runtime files exists.

set SQLJ_LIB=<SQLJ_LIB>

for example,
D:\> set SQLJ_LIB=d:\oracle\sqlj\lib

5. Set SQLJ_EXE_HOME environment variable to point to the directory where the SQLJ executable exists.  

set SQLJ_EXE_HOME=<SQLJ_EXE_HOME>

for example,
D:\> set SQLJ_EXE_HOME=d:\oracle\bin

6. Set CLASSPATH environment variable to point to classes12.jar/classes12.zip

set CLASSPATH=<JDBC_LIB>\classes12.jar;%CLASSPATH%

for example,
D:\> set CLASSPATH=d:\oracle\jdbc\lib\classes12.jar;%CLASSPATH%


Linux

Back To Top

This section describes the steps required to set the environment to run the sample on Linux platform [Bourne shell].


1. set JAVA_HOME environment variable to point your JDK- 1.3 installation directory.  

export JAVA_HOME = <JAVA_HOME>

for example,
$ export JAVA_HOME=/home/usr/jdk1.3


2. Add <JAVA_HOME>\bin to system PATH.

export PATH=<JAVA_HOME>/bin:$PATH

for example,
$ export PATH=$JAVA_HOME/bin:$PATH


3. Set JDBC_LIB environment variable to point to the directory where the Oracle JDBC driver file exists.

export JDBC_LIB=<JDBC_LIB>

for example,
$ export JDBC_LIB=/home/orahome/jdbc/lib

4. Set SQLJ_LIB environment variable to point to the directory where the Oracle SQLJ translator and runtime files exists.  

export SQLJ_LIB=<SQLJ_LIB>

for example,
$ export SQLJ_LIB=/home/orahome/sqlj/lib

5. Set SQLJ_EXE_HOME environment variable to point to the directory where the SQLJ executable exists.

export SQLJ_EXE_HOME=<SQLJ_EXE_HOME>

for example,
$ export SQLJ_EXE_HOME=/home/orahome/bin

6. Set CLASSPATH environment variable to point to classes12.jar/classes12.zip.

export CLASSPATH=<JDBC_LIB>/classes12.jar:$CLASSPATH

for example,
$ export CLASSPATH=/home/orahome/ora9i/jdbc/lib/classes12.jar:$CLASSPATH

E-mail this page
Printer View Printer View
Oracle Is The Information Company About Oracle | Oracle RSS Feeds | Careers | Contact Us | Site Maps | Legal Notices | Terms of Use | Privacy