Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ClassNotFoundException when using Oracle Driver

 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • 0
  • 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
  • 0
  • 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
  • 0
  • 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: 2577
11
C++ Linux Netbeans IDE
  • 0
  • 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.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic