java.lang.RuntimeException:无法编译的源代码 - 是什么导致了这种情况? [英] java.lang.RuntimeException: Uncompilable source code - what can cause this?

查看:15
本文介绍了java.lang.RuntimeException:无法编译的源代码 - 是什么导致了这种情况?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这个错误很奇怪,我的代码编译得很好,我可以看到它没有问题,但这个错误刚刚弹出.我已尝试重新启动 NetBeans,但没有其他异常信息.

This error is just bizarre, my code compiles fine, I can see there are no problems with it, yet this error has just popped up. I have tried re-starting NetBeans and there is no additional exception information.

什么会导致这种情况?

推荐答案

我猜您正在使用 IDE(如 Netbeans),即使某些类不可编译,它也允许您运行代码.在应用程序运行期间,如果访问此类会导致此异常.

I guess you are using an IDE (like Netbeans) which allows you to run the code even if certain classes are not compilable. During the application's runtime, if you access this class it would lead to this exception.

这篇关于java.lang.RuntimeException:无法编译的源代码 - 是什么导致了这种情况?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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