SQL Anywhere supports one version of jConnect: jConnect 6.0.5. The jConnect driver is available as a separate download from jConnect for JDBC. 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 version of jConnect:
For the purposes of this documentation, all the explanations and code samples provided assume that you are developing JDK 1.5 applications, and that you are using the jConnect 6.0.5 driver.
There is a copy of jconn3.jar in the install-dir\java folder. However, we recommend that you use the version of the file included with jConnect 6.0.5 since it will be current with the version of jConnect that you have installed.
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 jConnect installation directory).
set classpath=path\jConnect-6_0\classes\jconn3.jar;%classpath% |
The classes in jConnect 6.0.5 are all in com.sybase.jdbc3.jdbc. You must import these classes at the beginning of each source file:
import com.sybase.jdbc3.jdbc.* |
SQL Anywhere supports password encryption for jConnect connections.
Installing jConnect system objects into a database
Loading the jConnect driver
Supplying a URL to the driver
Discuss this page in DocCommentXchange. Send feedback about this page using email. |
Copyright © 2009, iAnywhere Solutions, Inc. - SQL Anywhere 11.0.1 |