• Post Reply Bookmark Topic Watch Topic
  • New Topic

DriverClassNot found Exception while connecting with the database  RSS feed

 
Priya chek
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Iam trying to pass the values to the database oracle. But getting "Driverclassno found exception". Please help me too fix this issue. I checked many times .But didint get.PLzzzzz..
Appreciating any help
 
Saif Asif
Ranch Hand
Posts: 440
Eclipse IDE Hibernate Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Greeting Priya ,
DriverClassNotFoundException refers that your JDBC driver jar is not present on the classpath. I don't know what driver you are using but lets assume that its a mySql driver then you will have to place the mysql-connector.jar on the classpath of your application.
 
Priya chek
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Saif Asif ,

Thanks for your reply. But i have updated the buildpath. Iam using Oracle 10-g database & i updated build path - oracle 14_g. but it showing same exception.




Thanks
PriyaChek
 
Jesper de Jong
Java Cowboy
Sheriff
Posts: 16057
88
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You must have done something incorrectly then, because the only way this error can happen is because the driver class cannot be found.

Make sure you included the JAR file that contains the JDBC driver on the classpath.
 
Priya chek
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok..Let me check it.
Thanks for your help guys



Thanks
PriyaChek
 
Saif Asif
Ranch Hand
Posts: 440
Eclipse IDE Hibernate Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just re-check the buildpath entries to make sure nothing is wrong there and that all paths are correct. Thats it. This should resolve your issue .
 
Priya chek
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Now it is working...Thankyou guys for your help
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!