Setting CLASSPATH

The CLASSPATH environment variable specifies the location of the jConnect runtime classes and the jar files for Java 6 or later. This section describes what you need in your CLASSPATH depending on which versions of JDK and jConnect you are using.

Using jConnect 7.0 with Java 6 and later

To use jConnect 7.0 with Java versions 6 and later, add these to CLASSPATH:

Running samples or TDS-tunnelling servlet

To run the samples or the TDS-tunnelling servlet, add these to CLASSPATH:

NoteSybase requires that you run Java 6 or later with jConnect 7.0.

In addition, CLASSPATH should include the location of any application classes you have defined.

CLASSPATH restriction using Firefox

If you use Firefox, some restrictions may apply to the way you set CLASSPATH.

The JVM security manager does 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 loads jConnect to connect to a server, it looks at CLASSPATH to find the jConnect classes. If it finds a path that points 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 include the local jConnect directory in CLASSPATH if you are using Firefox to run jConnect applets.