[Sharing a small error in the JRE setting in]eclipse 3.0 causes connection to the database in the Java file failed
Source: Internet
Author: User
Error | Connecting to database Java.lang.ClassNotFoundException:org.gjt.mm.mysq.Driver
This is probably the most common mistake, the general solution is to check whether the database driver is installed in the JDK directory
(such as: Copy the Mysql-connector-1-3-1.jar file to the Lib folder in the JDK directory)
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.