Cannot find the class file for java.lang.Object

"The type java.lang.Object cannot be resolved. Cannot find the class file for java.lang.Object”

错误,无论怎么构建路径、怎么导包都不行,后来还是在网上找到了解决方法。

点击project----->propertys------>Java Build Path -----> Libraries---->Add Libraries----->

JRE System Library------>选第一个workspace default jre-------->finish,这样就OK了!


【原文:http://blog.csdn.net/xw13106209/article/details/5834296】


你可能感兴趣的:(Cannot find the class file for java.lang.Object)