Procedure documentationInstalling the SAP MaxDB JDBC Driver and Java Classes Locate this document in the navigation structure


You have installed a Java platform.

More information:


  1. On the computer on which your Java application 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 <independent_program_path>\runtime\jar\ directory.

    Example Example

    C:\Program Files\sdb\programs\runtime\jar\sapdbc.jar

    End of the example.
  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%;<independent_program_path>\runtime\jar\sapdbc.jar

    • On Unix and Linux (sh):

      export CLASSPATH=$CLASSPATH:<independent_program_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 <independent_program_path>\runtime\jar\sapdbc.jar

    • On Unix and Linux (sh):

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

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