1

I recently updated from java 7 to 8 and jdbc will no longer run.

Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); // classNotFoundException is thrown

is what i get now when I run it, where did I go wrong?

thanks

Daniel
  • 60
  • 5
  • 2
    possible duplicate of [java.lang.ClassNotFoundException: sun.jdbc.odbc.JdbcOdbcDriver Exception occuring. Why?](http://stackoverflow.com/questions/22984438/java-lang-classnotfoundexception-sun-jdbc-odbc-jdbcodbcdriver-exception-occurin) – Madhawa Priyashantha Sep 16 '15 at 03:39
  • 2
    Answer can be found here http://stackoverflow.com/questions/21955256/manipulating-an-access-database-from-java-without-odbc Cheers. – GlacialFlames Sep 16 '15 at 03:41
  • 2
    JDBC-ODBC bridge is no longer available in Java 8. it will be explained here: docs.oracle.com/javase/7/docs/technotes/guides/jdbc/bridge.html – Nomesh DeSilva Sep 16 '15 at 03:44

2 Answers2

1

UCanAccess is a pure Java JDBC driver that allows us to read from and write to Access databases without using ODBC. It uses two other packages, Jackcess and HSQLDB, to perform these tasks.

GlacialFlames
  • 322
  • 1
  • 2
  • 11
0

sun.jdbc.odbc.JdbcOdbcDriver is Java internal class, it is not documented in the official Java SE javadoc and it should not be used by applications because it may change or totally disappear in a next Java version.

Evgeniy Dorofeev
  • 124,221
  • 27
  • 187
  • 258
  • wrong. It was documented. It was also always advised to not use it for anything except demonstration and educational purposes because it was not considered production quality code. It was also removed in JDK 8. – jwenting Sep 16 '15 at 05:53