开发者

Mysql/Jsp accessing database [closed]

开发者 https://www.devze.com 2023-03-25 15:52 出处:网络
Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post.
Closed. This question needs details or clarity. It is not currently accepting answers.

Want to improve this question? Add details and clarify the problem by editing this post.

Closed 8 years ago.

Improve this question

I 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?

0

精彩评论

暂无评论...
验证码 换一张
取 消