aspose file tools*
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
JavaRanch » Java Forums » Databases » JDBC
Reply locked New topic
Author

problem in connecting to database.

saurabh dudeja
Greenhorn

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

for this funcions

Class.forName("oracle.jdbc.driver.OracleDriver");

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
    
    1

saurabh dudeja wrote:
Class.forName("oracle.jdbc.driver.OracleDriver");

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
Bartender

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: http://aspose.com/file-tools
 
subject: problem in connecting to database.
 
Similar Threads
how connect with database using hyper link
oracle9i not being connect
The Network Adapter could not establish the connection in jdbc connection
ojdbc driver problem
No suitable driver found for jdbc:oracle