• Post Reply Bookmark Topic Watch Topic
  • New Topic

Unable to connect to MS Access DB

 
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
 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!