• 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:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

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: 80639
472
  • 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: 22849
132
Eclipse IDE Spring 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