Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Class not found exception

 
Aashu Arya
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am getting this exception while loading my driver:

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

I have also included the classes12.jar file for the applications class path.

Can anybody help me in this regard?
 
Vijitha Kumara
Bartender
Posts: 3913
9
Chrome Fedora Hibernate
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is your URL and the connection String correct?
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34681
367
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Aashu Arya:
java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver

I have also included the classes12.jar file for the applications class path.

These two statements conflict with each other. Can you explain how you added it to the classpath in case there is somewhere else to add it?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic