The jConnect JDBC Driver

The jConnect driver is available as a separate download. To use JDBC from an applet, you must use the jConnect JDBC driver to connect to SAP Sybase IQ databases.

Download the jConnect driver at http://www.sybase.com/products/allproductsa-z/softwaredeveloperkit/jconnect. Documentation for jConnect can also be found on the same page.

The jConnect Driver Files

jConnect is supplied as a JAR file named jconn4.jar. This file is located in your jConnect install location.

Setting the Class File Path for jConnect

For your application to use jConnect, the jConnect classes must be in your class file path at compile time and run time, so that the Java compiler and Java runtime can locate the necessary files.

The following command adds the jConnect driver to an existing CLASSPATH environment variable (where jconnect-path is your jConnect installation directory).

set classpath=jconnect-path\classes\jconn4.jar;%classpath%

Importing the jConnect Classes

The classes in jConnect are all in com.sybase.jdbc4.jdbc. You must import these classes at the beginning of each source file:

import com.sybase.jdbc4.jdbc.*

Encrypting Passwords

SAP Sybase IQ supports password encryption for jConnect connections.