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
Author

Unable to connect to MS Access DB

Sukrit Sulochana
Greenhorn

Joined: Oct 13, 2005
Posts: 21
Hello,

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?

Thanks,
Rajneesh
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

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: http://aspose.com/file-tools
 
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?