debug in Myeclipse ClassNotFoundException

本文详细介绍了在使用MyEclipse进行开发时遇到ClassNotFoundException问题的解决方法,通过关闭特定断点设置避免频繁触发该异常,确保程序正常运行。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

这个问题让我纠结了好久!百度得不到一点有用的信息,后来通过谷歌解决了这个问题。在某个国外论坛看到很多人debug in eclipse的时候也出现同样的ClassNotFoundException,有人回帖给出了原因和解决方法:

 I figured out that if I kept hitting continue (to go past the breakpoint) it would eventually reach my actual application. Along the way though, java was triggering ClassNotFoundExceptions for every single class referenced in my code, which was causing Eclipse to break. It turns out that these ClassNotFoundExceptions are normal behavior – they are supposed to happen for every new class, but having eclipse set a breakpoint for each one is definitely not! To solve the problem, I had to open up the breakpoint window and disable the breakpoint “ClassNotFoundException: caught and uncaught”  

也就是说你断点的设置中默认总是选中ClassNotFoundException: caught and uncaught,eclipse执行的时候会查找你代码中的每个类的这个异常,最终导致执行中断。Myeclipse中怎么解决这个问题呢?打开Window->Show View->Other->BreakPoints,然后在下面BreakPoints栏中把ClassNotFoundException: caught and uncaught前面的钩去掉!下次在debug的时候就不会报ClassNotFoundException了!


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值