Setting the Java CLASSPATH for the JDBC Driver
When using one of the TDV JDBC drivers with client applications written in Java, make sure that csjdbc.jar is available in your system’s CLASSPATH. For the list of supported drivers, see
Driver Support.
To set the CLASSPATH for JDBC driver
1. Make sure that the JDBC driver JAR file is available in your system’s CLASSPATH.
2. Run the following command, depending on your operating system, to set the CLASSPATH:
OS | Command |
Windows | set CLASSPATH=%CLASSPATH%;<PATH>\csjdbc.jar |
UNIX | export CLASSPATH=$CLASSPATH:<PATH>/csjdbc.jar |
<PATH> is the valid path where the JDBC driver is located.
3. Run your Java-based client application:
OS | Command |
Windows | java -classpath "%CLASSPATH%;<PATH>\csjdbc.jar" <CLIENT_JDBC_PROGRAM> |
UNIX | java -classpath "$CLASSPATH:<PATH>/csjdbc.jar" <CLIENT_JDBC_PROGRAM> |
<CLIENT_JDBC_PROGRAM> is your client application that is written in Java and accesses data through TDV.