找不到类的例外 [英] class not found exception

查看:78
本文介绍了找不到类的例外的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




i使用mysql作为数据库,同时使用jsp连接数据库我得到以下异常



" ; java.lang.ClassNotFoundException:com.mysql.jdbc.D river"


可以告诉任何人实际问题




关于

hi

i am using mysql as database while connecting to database using jsp i am getting the following exception


"java.lang.ClassNotFoundException:com.mysql.jdbc.D river"


can any one tell wha tis the actual problem



regards

推荐答案

您是否在网站上重新输入此内容,或者您​​是否复制并粘贴了?在单词Driver的中间有一个空格 - 在输入import语句时你可能错误地输入了一个额外的空格。
Did you retype this on the site, or did you copy and paste? There is a space in the middle of the word Driver - you may have mistakenly typed an extra space when typing the import statement.


你是否包含了JDBC库?????
did u include the JDBC library?????



hi


i使用mysql作为数据库,同时使用jsp连接到数据库我得到以下内容例外


" java.lang.ClassNotFoundException:com.mysql.jdbc.D river"


任何一个人都可以说实际的问题


关于
hi

i am using mysql as database while connecting to database using jsp i am getting the following exception

"java.lang.ClassNotFoundException:com.mysql.jdbc.D river"

can any one tell wha tis the actual problem

regards



我的猜测是问题在于你的1)类路径,或2)声明。


您是否在类路径中包含JDBC驱动程序,或将其附加到项目中?如果是这样,我们可以看到你的声明(classforname等...)?

My guess would be that the problem lies in your 1) classpath, or 2) declaration.

Did you include the JDBC driver in your classpath, or attach it to your project? If so, can wee see your declaration (the classforname, etc...)?


这篇关于找不到类的例外的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆