This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript 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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: help