skip to main content
Configuring the JDBC Client : Connecting to a Data Source : Setting the Classpath
 

Setting the Classpath

The JDBC Client must be defined in your CLASSPATH variable. The CLASSPATH is the search string your Java Virtual Machine (JVM) uses to locate the JDBC driver on your computer. If it is not defined on your CLASSPATH, you will receive a "class not found" error when trying to load the JDBC Client. Set your system CLASSPATH to include the following entry, where oajc.jar is the JDBC Client jar file and installdir is the path to your JDBC Client installation directory:

installdir\driver\lib\oajc.jar;
Windows Example

CLASSPATH=driver\lib\oajc.jar;
UNIX Example

CLASSPATH=.:/home/user1/oajdbc810/driver/lib/oajc.jar
Export CLASSPATH