Setting JDBC_HOME  Install stored procedures

Chapter 1: Installation Instructions

Setting the CLASSPATH

NoteIf you are using JRE or jView instead of JDK, see the documentation for those products for instructions on setting the CLASSPATH variable.

CLASSPATH is the location of the jConnect runtime classes and/or jar files, and the Java home library for JDK 1.2.x or later. This section describes what you need in your CLASSPATH depending on which versions of JDK and jConnect you are using.

NoteOn Windows NT, Windows 95, and older Windows systems, make sure that file and directory names are no longer than eight characters plus a three-character suffix (“8.3 format”), or that you use abbreviated (“mangled”) names as displayed in a DOS directory listing (for example, progra~1 instead of program files).

To use jConnect 5.x with JDK versions 1.2 and later, set the CLASSPATH:

JDK versions 1.2 and later do not require you to set the location of the Java runtime classes in your CLASSPATH.

To run the samples or the TDS-tunnelling servlet, set the CLASSPATH environment variable:

NoteSybase does not recommend running JDK 1.1.x with jConnect 5.x.

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

As explained in the next section, if you use Netscape, some restrictions may apply to the way you set your CLASSPATH environment variable.


Restrictions when using Netscape

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 Netscape to run an applet that uses jConnect.

When Netscape 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.

Therefore, if you are using Netscape to run jConnect applets, do not set the CLASSPATH to the local jConnect directory.





Copyright © 2003. Sybase Inc. All rights reserved. Install stored procedures

View this book as PDF