The jConnect Driver Files

The SAP Sybase jConnect driver is installed into a set of directories under the jConnect subdirectory of your SAP Sybase IQ installation. If you have not installed jConnect, you can use the jdbcdrv.zip file installed into the Java subdirectory.

Classpath Setting for jConnect

For your application to use jConnect, the jConnect classes must be in your CLASSPATH environment variable at compile time and run time, so the Java compiler and Java runtime can locate the necessary files.

For example, the following command adds the jConnect driver class path to an existing CLASSPATH environment variable where path is your SAP Sybase IQ installation directory.

set classpath=%classpath%;path\jConnect\classes

The following alternative command adds the jdbcdrv.zip file to your CLASSPATH.

set classpath=%classpath%;path\java\jdbcdrv.zip

Importing the jConnect Classes

The classes in jConnect are all in the com.sybase package. The client application needs to access classes in com.sybase.jdbc. For your application to use jConnect, you must import these classes at the beginning of each source file:

import com.sybase.jdbc.*