Exception on loading JDBC-ODBC driver

前端 未结 2 1573
滥情空心
滥情空心 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 01:57

    Are you using Java 8? The class is no longer present there (more info). You could install Java 7 if you need to use it.

    0 讨论(0)
  • 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

    0 讨论(0)
提交回复
热议问题