jQuery in Action, 2nd edition*
The moose likes JDBC and the fly likes Unable to connect to MS Access DB Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Unable to connect to MS Access DB" Watch "Unable to connect to MS Access DB" New topic

Unable to connect to MS Access DB

Sukrit Sulochana

Joined: Oct 13, 2005
Posts: 21

I am trying to connect to a MS Access DB from a java class and an getting the following error:

java.lang.ClassNotFoundException: sun.jdbc.odbc.JdbcOdbcDriver

What could be the problem?

Christophe Verré

Joined: Nov 24, 2005
Posts: 14687

ODBC-JDBC Bridge Driver is not found in the CLASSPATH.
Make sure it is.

Which version of Java are you using by the way ?
java -version

[My Blog]
All roads lead to JavaRanch
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: Unable to connect to MS Access DB
Similar Threads
Hibernate and MS Access?
how do i connect applet to datbase of ms-access.
Exception when reading image( using getBLOB ) from database
How to access MS-Access(.mdb) file in java program with MAC OS
Remote Access