This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JDBC and the fly likes problem in connecting to database. 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
Reply locked New topic

problem in connecting to database.

saurabh dudeja

Joined: Mar 26, 2009
Posts: 11
Hi I have written a simple program in java to connect to a database

for this funcions


I am getting error

java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver

please help me out with this.
Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902

saurabh dudeja wrote:

Look for the oracle driver .jar file is on classpath or not?

[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
Paul Sturrock

Joined: Apr 14, 2004
Posts: 10336

Please do not post the same question more than once. Thanks

JavaRanch FAQ HowToAskQuestionsOnJavaRanch
I agree. Here's the link:
subject: problem in connecting to database.
Similar Threads
No suitable driver found for jdbc:oracle
The Network Adapter could not establish the connection in jdbc connection
ojdbc driver problem
how connect with database using hyper link
oracle9i not being connect