本文介绍了我得到了java.lang.ClassNotFoundException:com.mysql.jdbc.Driver的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

来如何我得到这个错误?查看图片:

How come I get this error?Check the picture:

我用普通的Java项目中的相同的jar(不是机器人的人),并用来工作。怎么了?

I used the same jar on normal java projects(not android ones) and it used to work.What's wrong?

推荐答案

你得到一个的NoClassDefFoundError 因为你的jar文件是不是在运行时可用。为了使它在运行时可用您必须检查你的jar文件的复选框在Java构建路径,如下所示:

You're getting a NoClassDefFoundError because your jar file is not available at runtime. In order for it to be available at runtime you'll have to check the checkboxes on your jar file in your java build path like so:

这篇关于我得到了java.lang.ClassNotFoundException:com.mysql.jdbc.Driver的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-04 13:43