File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JDBC and Relational Databases 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 Head First Android this week in the Android forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
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: 14688

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
It's not a secret anymore!