Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

java.lang.ClassNotFoundException: sun.jdbc.odbc.JdbcOdbcDriver Exception in Java

 
Gladis Thomas
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Thanks for your reply for the previous post.

Now i tried connecting the MS ACCESS DB in NetBeans IDE 8.0 and the java version is JDK1.8.

I tried many ways by adding 5 jar files for this.

But still am getting the exception.

Can you help me to resolve this?

I have attached the error page also.

Thanks in advance.
java.lang.ClassNotFoundException sun.jdbc.odbc.JdbcOdbcDriver Exception in Java.png
[Thumbnail for java.lang.ClassNotFoundException sun.jdbc.odbc.JdbcOdbcDriver Exception in Java.png]
 
Campbell Ritchie
Sheriff
Posts: 51388
87
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I presume you have a .jar file with that class in?
Please show us where it is and how you are adding it to the classpath.
 
Rob Spoor
Sheriff
Pie
Posts: 20751
68
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
From http://docs.oracle.com/javase/7/docs/technotes/guides/jdbc/bridge.html:
The JDBC-ODBC Bridge should be considered a transitional solution; it will be removed in JDK 8. In addition, Oracle does not support the JDBC-ODBC Bridge. Oracle recommends that you use JDBC drivers provided by the vendor of your database instead of the JDBC-ODBC Bridge.

In other words, it's gone, and you'll have to find another driver.
 
Sudhir Kumar Ojha
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your problem in your jar files please use other RDBS like oracle or mysql or such other RDBMS and use their relevant drivers and jar files
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic