No suitable Driver Found for jdbc_ my workaround

Source: Internet
Author: User

Today the code appeared no suitable driver found for jdbc, but also searched the online information, basically said to be three questions:
One is: There was a problem with the connection URL format (Connection conn=drivermanager.getconnection ("Jdbc:mysql://localhost:3306/xx", "root", "XXXX")
The second is: drive string error (Com.mysql.jdbc.Driver)
Third, the classpath did not join the appropriate MYSQL_JDBC drive
After my careful examination, these three kinds of mistakes I have not committed, why?
Try to add Mysql-connector-java-3.1.14-bin.jar jar package to C:\Program Files\java\jre1.6.0_02\lib\ext folder, solve the problem!!
This is not only required to add the driver to Classpath, but also need to add the jar package to the Java operating environment of the external jar package, alas, the next low-level error is still less good.

No suitable Driver Found for jdbc_ my workaround

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.