Setting the Classpath
- Last Updated: July 4, 2023
- 1 minute read
- DataDirect Connectors
- JDBC
- Salesforce 6.0
- Documentation
Before you can connect, the driver must be defined in your CLASSPATH
variable. 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 sforce.jar file as shown, where install_dir
is the path to your product installation directory:
install_dir/lib/60/sforce.jar
Windows Example
CLASSPATH=.;C:\Program Files\Progress\DataDirect\JDBC\lib\60\sforce.jar
UNIX Example
CLASSPATH=.:/opt/Progress/DataDirect/JDBC/lib/60/sforce.jar