Setting the Classpath

Java Virtual Machines rely on an environment variable called Classpath to point to the necessary Java components (classes) required for execution. When the CONNX JDBC Driver is used, the Classpath environment variable must be extended to enable the CONNX JDBC Driver (Thin Client). The CONNX JDBC Driver is referred to by its file name:

C:\CONNX32\CONNXJDBC\java\jar\connxjdbc.jar

An example of a modified Classpath is as follows:
 

CLASSPATH=C:\CONNX32\CONNXJDBC\java\jar\connxjdbc.jar

 

To set the system environment variable, use the following procedure:

  1. Right-click on My Computer, and then select Properties.

  2. Select the Advanced tab, and then click the Environment Variables button.

  3. Under System Variables, click the New button.

  4. Enter the new Variable Name (Classpath), and the Variable Value (C:\CONNX32\CONNXJDBC\java\jar\connxjdbc.jar), and then click the OK button.

  5. Click the OK button to return to the System Properties window.

  6. Click the OK button.

Related Topics

image\CHICLET.jpg Connecting to a Data Source

image\CHICLET.jpg Registering the Data Source Name

image\CHICLET.jpg To add a new Data Source Name for the JDBC Driver