aspose file tools*
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

Win a copy of Java 8 in Action this week in the Java 8 forum!
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
I agree. Here's the link:
subject: Unable to connect to MS Access DB
Similar Threads
how do i connect applet to datbase of ms-access.
How to access MS-Access(.mdb) file in java program with MAC OS
Remote Access
Exception when reading image( using getBLOB ) from database
Hibernate and MS Access?