SQL Anywhere supports two versions of jConnect: jConnect 5.5 and jConnect 6.0.5. The jConnect driver is available as a separate download from http://www.sybase.com/products/informationmanagement/softwaredeveloperkit/jconnect. Documentation for jConnect can also be found on the same page.
If you want to use JDBC from an applet, you must use the jConnect JDBC driver to connect to SQL Anywhere databases.
SQL Anywhere supports the following versions of jConnect:
jConnect 5.5 This version of jConnect is for developing JDK 1.2 applications. jConnect 5.5 is JDBC 2.0 compliant. jConnect 5.5 is supplied as a JAR file named jconn2.jar.
jConnect 6.0.5 This version of jConnect is for developing JDK 1.3 or later applications. jConnect 6.0.5 is JDBC 3.0 compliant. jConnect 6.0.5 is supplied as a JAR file named jconn3.jar.
For the purposes of this documentation, all of the explanations and code samples provided assume that you are developing JDK 1.5 applications, and using the jConnect 6.0.5 driver.
For your application to use jConnect, the jConnect classes must be in your class 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 6.0.5 driver to an existing CLASSPATH environment variable where path is your SQL Anywhere installation directory.
The classes in jConnect are all in the com.sybase package.
If you are using jConnect 6.0.5, the classes are in com.sybase.jdbc3.jdbc. You must import these classes at the beginning of each source file:
Installing jConnect system objects into a database
Loading the jConnect driver
Supplying a URL to the driver