CLASSPATH is the location of the jConnect runtime classes and the jar files for JDK 1.6 or later. This section describes what you need in your CLASSPATH depending on which versions of JDK and jConnect you are using.
To use jConnect 7.0 with JDK versions 1.6.x and later, add the following path to the CLASSPATH environment variable:
$JDBC_HOME/classes/jconn4.jar
To run the samples or the TDS-tunnelling servlet, add the following to the CLASSPATH environment variable:
$JDBC_HOME/classes/jconn4.jar:$JDBC_HOME/classes
Sybase requires that you run JDK 1.6 or later with jConnect 7.0.
In addition, the CLASSPATH should include the location of any application classes you have defined.
If you use Firefox, some restrictions may apply to the way you set your CLASSPATH environment variable.
The Java VM security manager will not allow a version of jConnect installed in your local file system to create a connection to a server, even if the server is your local system. This can create a problem if you use Firefox to run an applet that uses jConnect.
When Firefox needs to load jConnect to create a connection to a server, it looks for a CLASSPATH defined in its environment to find the jConnect classes. If it finds a CLASSPATH that you have defined to point to your local jConnect installation, it loads jConnect directly from the local file system—rather than from the server—and tries to create a connection. This generates a security error and the connection fails.
Do not set the CLASSPATH to the local jConnect directory if you are using Firefox to run jConnect applets.