Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this questionI was able declare my forms variable and also establish a connection to my MySQL Database, but when I ran the program it give me error Class.forName
not found. Meanwhile, I think the syntax is correct:
Class.forName("com.mysql.jdbc.开发者_如何学PythonDriver").newInstance();
So what is the possible solution and the possible cause of such an error?
This means that the mysql JDBC driver is not included in your classpath.
have you put the MySQL jar to the project classpath or to the web container lib folder?
精彩评论