Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: connect through jdbc
zeb wrote:
> I try to connect to a db through a simple java program:
>
> JDK 1.4
>
> CLASSPATH=$ORACLE_HOME/jdbc/lib/classes12.jar
> and
> CLASSPATH=$ORACLE_HOME/jdbc/lib/ojdbc14.jar
> ( loaded from otn for oracle 9.2.0.0 JDK1.4)
> and I have the following error:
> java.lang.NoClassDefFoundError: oracle/jdbc/driver/OracleDriver
Are you sure the CLASSPATH is being exported (i.e. export CLASSPATH)? I'm assuming that classes12.jar was just a test you did. You only want/need ojdbc14.jar.
-- Richard KuhlerReceived on Tue Nov 16 2004 - 16:36:53 CST