Show TOC

Installing the SAP MaxDB JDBC Driver and Java ClassesLocate this document in the navigation structure


You have installed a Java platform.

More information: http://java.sun.comInformation published on non-SAP site


  1. On the computer on which your Java platform is located, install the JDBC SAP MaxDB software component. This software component contains the SAP MaxDB JDBC Driver and the DBM and Loader Java classes.

    After installation, you can find the JDBC driver and the Java classes in the sapdbc.jar file in the <installation_path>\runtime\jar\ directory.


    You can display the installation path using the dbm_getpath DBM command:

    dbmcli dbm_getpath InstallationPath

    For more information, see Database Manager CLI, dbm_getpath.


    C:\Program Files\sdb\Installation_2009-07-21\runtime\jar\sapdbc.jar


    Do not copy the JDBC driver to another location, because that may lead to problems when updating the software.

  2. Add the path for the sapdbc.jar file to the CLASSPATH environment variable so that Java can find the JDBC driver and Java classes. To do this, enter the following commands:
    • On Microsoft Windows:

      set CLASSPATH=%CLASSPATH%;<installation_path>\runtime\jar\sapdbc.jar

    • On Unix and Linux (sh):

      export CLASSPATH=$CLASSPATH:<installation_path>/runtime/jar/sapdbc.jar

    If you do not want to include the path for sapdbc.jar in the CLASSPATH environment variable, you can specify the path for sapdbc.jar path when calling Java as follows:

    • ON Microsoft Windows:

      java -cp <installation_path>\runtime\jar\sapdbc.jar

    • On Unix and Linux (sh):

      java -cp <installation_path>/runtime/jar/sapdbc.jar

    If necessary, add the CLASSPATH environment variable to the login profile of the current operating system user.