我安装了JDK1.7,并尝试连接到不同的MySQL数据库和连接器/J版本。jdbc.JDBC.main(JDBC.java:24)
Caused by: java.lang.RuntimeException: Uncompilable source code - com.mysql.jdbc.NonRegisteringDriveris not abstract and does not override abstract method getParentLogger() in
我在试图连接到MySQL数据库的Netbeans中运行了以下代码。{
{ String host = "jdbc:mysqlSystem.out.println(err.getMessage()); }
我收到以下异常消息:
No suitable driver found for jdbc:mysql编辑:--此外
我使用mysql-connector-java-5.0.7-bin将java与mysql.it连接起来,在IDE中工作良好,最后我创建了可执行文件jar.。当我从cmd窗口运行jar文件时,我在cmd中得到了以下错误db not connected -connectionjava.lang.ClassNotFoundException: com.my