0

i typed a single program to connect to a access database and display a single record. but when i run the program, there seems to be an issue with the drivers. (i'm just getting started in java) enter image description here ** the DNS & table name are correct

tbodt
  • 16,609
  • 6
  • 58
  • 83
L.Wije
  • 1
  • 1
  • 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) – Misa Lazovic Mar 03 '16 at 16:09

1 Answers1

1

The JDBC-ODBC bridge driver has been removed from JDK 8. Any tutorials you see that use Access probably depend on this class. It's been part of Java for 20 years, so I'm sure you'll find lots of examples that are now obsolete.

You'll either have to buy a JDBC driver for Access or use a real database like MySQL, PostgreSQL, etc.

duffymo
  • 305,152
  • 44
  • 369
  • 561