Loading...

Add JDBC driver to your classpath

:heavy_exclamation_mark: This post is older than a year. Consider some information might not be accurate anymore. :heavy_exclamation_mark:

If CLASSPATH exists; the driver is appended. For Windows:

SET ORACLE_JAR=C:\Data\lib\db\ojdbc6-11g.jar
SET CLASSPATH="%CLASSPATH%;%ORACLE_JAR%"
ECHO %CLASSPATH%
"C:\Data\lib\db\ojdbc6-11g.jar"

For Linux:

export ORACLE_JAR=/opt/lib/db/ojdbc6-11g.jar
export CLASSPATH="$ORACLE_JAR:$CLASSPATH"
# check setting
echo $CLASSPATH
Please remember the terms for blog comments.