Setting CLASSPATH Variable

The CLASSPATH environment variable specifies the location of the SAP jConnect runtime classes and the jar files for Java 6 or later

Set the CLASSPATH depending on the versions of JDK and SAP jConnect you are using.

To use SAP jConnect 16.0 with Java 6 or later:

Add these to CLASSPATH

To run the samples or TDS-Tunnelling Servlet

Add these to CLASSPATH:
  • Microsoft Windows–%JDBC_HOME%\classes\jconn4.jar;%JDBC_HOME%\classes
  • UNIX platforms – $JDBC_HOME/classes/jconn4.jar:$JDBC_HOME/classes
    Note: SAP recommends that you run Java 6 or later with SAP jConnect 16.0. In addition, CLASSPATH should include the location of any application classes you have defined.