Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

ClassNotFoundException when using Oracle Driver  RSS feed

 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 .

 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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?

 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using jdk 6 ,

please tell me what add jar files to be added .
 
Jan Cumps
Bartender
Posts: 2632
17
C++ Linux Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!