java - connect to the mysql database with jdbc connector in intellij13 -
when have connect mysql jdbc error occure in code line:
connection con = drivermanager.getconnection("jdbc:mysql://localhost:3306 /server1","root","admin");
the error is:
c:\jdk\bin\java -didea.launcher.port=7539 "-didea.launcher.bin.path=c:\intellij idea 13.0.2\bin" -dfile.encoding=utf-8 -classpath "c:\jdk\jre\lib\i18n.jar;c:\jdk\jre \lib\jaws.jar;c:\jdk\jre\lib\rt.jar;c:\jdk\jre\lib\sunrsasign.jar;c:\users\kamyar \desktop\chatjava\untitled3\out\production\untitled3;c:\users\kamyar\desktop\myjdbc \mysql-connector-java-5.1.6-bin.jar;c:\intellij idea 13.0.2\lib\idea_rt.jar" com.intellij.rt.execution.application.appmain ccc java.lang.noclassdeffounderror: java/sql/savepoint @ com.mysql.jdbc.nonregisteringdriver.connect(nonregisteringdriver.java:282) @ java.sql.drivermanager.getconnection(drivermanager.java:517) @ java.sql.drivermanager.getconnection(drivermanager.java:177) @ ccc.main(ccc.java:17) @ java.lang.reflect.method.invoke(native method) @ com.intellij.rt.execution.application.appmain.main(appmain.java:120) exception in thread "main" process finished exit code 1
how can resolve problem? thanks...
Comments
Post a Comment