RE: newbee - jdbc

  • From: "Mercadante, Thomas F \(LABOR\)" <Thomas.Mercadante@xxxxxxxxxxxxxxxxx>
  • To: <md@xxxxxxxxxxxxx>, <Oracle-L@xxxxxxxxxxxxx>
  • Date: Wed, 19 Apr 2006 11:38:48 -0400

Mathias,

You need to include the Oracle class in the classpath where you are
executing your java program.  I am assuming this is on your client
machine.

On unix,
Export CLASSPATH=
.:/opt/oracle/product/9.2.0/jdbc/lib/classes12.zip:/opt/oracle/product/9
.2.0/JRE:/opt/oracle/product/9.2.0/jlib:.

Be sure and include the "."

On NT, create an NT environmental on your system for classpath.  On my
desktop, it looks like:

CLASSPATH=c:\oracle\product\10.1.0\client_1\jlib\;.

Hope this helps.

Tom

-----Original Message-----
From: oracle-l-bounce@xxxxxxxxxxxxx
[mailto:oracle-l-bounce@xxxxxxxxxxxxx] On Behalf Of Mathias Diehl
Sent: Wednesday, April 19, 2006 11:41 AM
To: Oracle-L@xxxxxxxxxxxxx
Subject: newbee - jdbc

Hi List,

soryy for the dumb question...

I'm *very* new to oracle and tried to setup a java app using jdbc on a
second server. 

I get the error:
Check that the Jdbc drivers are included in your class path. 
Error loading JDBC driver: "oracle.jdbc.driver.OracleDriver

Now I googled around and found that I have to add the jdbc to my
classpat.

Please advise if I have to modify my classpath on oracle server AND
client and how to do so (classpath of root? oracle? or tomcat?)

Or mybe can someone point me to a nice example....

thanx in advance
--
//www.freelists.org/webpage/oracle-l


--
//www.freelists.org/webpage/oracle-l


Other related posts: