wood burning stoves 2.0*
The moose likes JDBC and the fly likes help Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "help " Watch "help " New topic
Author

help

satyabrat pati
Greenhorn

Joined: Mar 26, 2007
Posts: 3
my compiler is giving "drivernotfound exception" .I am using oracle thin for connection.Its any prob regarding the import package?
I hav imported java.sql.*; is thr anything more to be imported.
I am using oracle 9i app server
I am a new devloper and hav little knowladge in it.Please help
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336


Its any prob regarding the import package?
I hav imported java.sql.*; is thr anything more to be imported.

No, you don't need to import anything more. If you did, you would see a compiler exception, not a runtime exception.

You need to add he Oracle driver to the classpath of your application. Have a read of the JDBC documentation that comes with Oracle, this covers this fully and includes examples.

(It would be appreciated if you took a look at this too)


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
 
 
subject: help
 
Similar Threads
Passing Array To Store Procedure
merging two columns
JUSB on red hat 9
XMLTYPE DATATYPE
create database connection pool