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.
Note
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.
Example
C:\Program Files\sdb\Installation_2009-07-21\runtime\jar\sapdbc.jar
Note
Do not copy the JDBC driver to another location, because that may lead to problems when updating the software.
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.