Menu

java.lang.ClassNotFoundException: net.ucanaccess.jdbc.ucanaccessdriver

Help
monica
2015-10-27
2015-10-27
  • monica

    monica - 2015-10-27

    Hi,

    I am using java windows application. In my code i used to connect to ms access database through ODBC as java 8 has removed ODBC i download ucanaccess and added all jars to my library. eben though i am getting exception.
    In oDBC i used to declare like

    db.accessDriverName=sun.jdbc.odbc.JdbcOdbcDriver
    db.accessDatabaseName=jdbc:odbc:MSTv2

    can please suggest how to declare a connection using ucanaccess i have tried like.

    db.accessDriverName=net.ucanaccess.jdbc.ucanaccessdriver
    db.accessDatabaseName="jdbc:ucanaccess://C:/MSTv2/databaseMSTv2.accdb"

     
  • Marco Amadei

    Marco Amadei - 2015-10-27

    net.ucanaccess.jdbc.UcanaccessDriver not net.ucanaccess.jdbc.ucanaccessdriver
    Cheers, Marco

     
  • monica

    monica - 2015-10-27

    Still it is not working please let me know if any other setup needs to be done. Do i need to call the class for initiating the connection.

     
    • Gord Thompson

      Gord Thompson - 2015-10-27

      Take a look at the following Stack Overflow answer and see if it helps:

      http://stackoverflow.com/a/21955257/2144390

       
  • Marco Amadei

    Marco Amadei - 2015-10-27

    Impossible to help you with the informations you provided. What did you mean with "added all jars to my library".Where exactly did you added them?

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.