• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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]
 
Marshal
Posts: 79178
377
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Sheriff
Posts: 22783
131
Eclipse IDE Spring VI Editor Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic