Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: connect through jdbc

Re: connect through jdbc

From: Richard Kuhler <noone_at_nowhere.com>
Date: Tue, 16 Nov 2004 22:36:53 GMT
Message-ID: <9ivmd.54389$hN1.52755@twister.socal.rr.com>


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 Kuhler
Received on Tue Nov 16 2004 - 16:36:53 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US