How to connect java to Ms Access 2010?

后端 未结 6 1987
醉酒成梦
醉酒成梦 2020-12-05 09:05

Does anyone have any ideas of how to connect Access 2010 to java jdbc. I use this method, but when I call it, it doesn\'t work:

public void loadDb(){
   try{         


        
6条回答
  •  感情败类
    2020-12-05 09:20

    According to msdn it should be sun.jdbc.odbc.JdbcOdbcDriver. So replace this line of code:

    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");

提交回复
热议问题