• Post Reply Bookmark Topic Watch Topic
  • New Topic

Unable to connect to MS Access DB  RSS feed

 
Sukrit Sulochana
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!