skip to main content
Getting Started : Connecting Using the JDBC Driver Manager : Setting the Classpath
  

Try DataDirect Drivers Now

Setting the Classpath

The driver must be defined in your CLASSPATH variable before you can connect. The CLASSPATH is the search string your Java Virtual Machine (JVM) uses to locate JDBC drivers on your computer. If the driver is not defined on your CLASSPATH, you will receive a class not found exception when trying to load the driver. Set your system CLASSPATH to include the mongodb.jar file as shown, where install_dir is the path to your product installation directory:
install_dir/lib/mongodb.jar
Windows Example
CLASSPATH=.;C:\Program Files\Progress\DataDirect\JDBC_60\lib\mongodb.jar
UNIX Example
CLASSPATH=.:/opt/Progress/DataDirect/JDBC_60/lib/mongodb.jar