File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC and the fly likes ClassNotFoundException when using Oracle Driver Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "ClassNotFoundException when using Oracle Driver" Watch "ClassNotFoundException when using Oracle Driver" New topic
Author

ClassNotFoundException when using Oracle Driver

Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2234

Hi ,

While Debugging in Eclipse , I am getting ClassNotFoundException after the line

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

I have added classes12.jar , ojdbc14.jar in my lib path as well as on to Eclipse build path ,
But still i am getting the sam exception .

Please help to resolve this issue .

Thnaks in advnace .


Save India From Corruption - Anna Hazare.
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336


I have added classes12.jar , ojdbc14.jar in my lib path as well as on to Eclipse build path ,

Why have you got both classes12 and ojdbc14 in the classpath? Which JDK are you using?


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2234

I am using jdk 6 ,

please tell me what add jar files to be added .
Jan Cumps
Bartender

Joined: Dec 20, 2006
Posts: 2503
    
    8

Required files are described on Oracle's web:
http://www.oracle.com/technology/tech/java/sqlj_jdbc/htdocs/jdbc_faq.html#02_07

The link points to section "What are all of these files for?".
You get an explanation of correct driver libraries for the Java and Oracle versions.


OCUP UML fundamental and ITIL foundation
youtube channel
 
 
subject: ClassNotFoundException when using Oracle Driver