File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript 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