Exception on loading JDBC-ODBC driver

前端 未结 2 1585
滥情空心
滥情空心 2020-12-22 01:28

I am getting java.lang.ClassNotFoundException on loading sun.jdbc.odbc.JdbcOdbcDriver using Class.forName().

I am using MySQL

2条回答
  •  自闭症患者
    2020-12-22 02:07

    This happened to me once, and what i did was importing the mysql jdbc library that came with the product when i downloaded it, after that i used the driver as it is explained in the page:

    http://dev.mysql.com/doc/connector-j/en/connector-j-usagenotes-connect-drivermanager.html

    hope this could help you

提交回复
热议问题