这个问题当然是找不到mysql的驱动类,可能是环境CLASSPATH有问题或者就是那个人没有加载jdbc的驱动。我在网上下载mysql-connector-java-5.0.8-bin.jar一个这个,问题马上解决了哦!
相关文章
- Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "main"
- Java中调用c/c++语言出现Exception in thread "main" java.lang.UnsatisfiedLinkError: Test.testPrint(Ljava/lang/String;)V...错误
- IDEA java编译中出现了Exception in thread “main" java.lang.UnsupportedClassVersionError
- Exception in thread “main“ java.lang.ArrayIndexOutOfBoundsException: Index 5 out of bounds for lengt
- 解决方案--java执行cmd命令ProcessBuilder--出错Exception in thread "main" java.io.IOException: Cannot run program "dir d:\": CreateProcess error=2(xjl456852原创)
- IDEA 本地调试spark程序 Exception in thread "main" java.lang.NoSuchMethodError: scala.collection.immutable.
- Exception in thread “main“ java.sql.SQLException: Unknown initial character set index ‘255‘ received
- 【Java】BigDecimal中的divide方法报错,Exception in thread "main" java.lang.ArithmeticException:
- 关于eclipse软件中jar打包后创建对象出错的问题---Exception in thread “main“ java.lang.Error: Unresolved compilation....
- 成功解决Java 报错: Exception in thread "main" java.util.InputMismatchException