当使用 eclipse 导入项目 时遇到:
Cannot find the class file for java.lang.Object. Fix the build path then try building this project
那么请检查eclipse里的jre,如果没有,就重新添加,如果存在,就remove后重新添加。添加方法:window -> preferences -> java -> installed jres -> Add .... 来添加jre的安装目录。如果本身存在,就remove后:Properties->Java Build Path->Add Library... ->add "JRE System Library" 来重新添加
问题应该是可以解决了。