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
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"
net.ucanaccess.jdbc.UcanaccessDriver not net.ucanaccess.jdbc.ucanaccessdriver
Cheers, Marco
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.
Take a look at the following Stack Overflow answer and see if it helps:
http://stackoverflow.com/a/21955257/2144390
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?