myeclipse环境
更换tomcat 的jdk版本后报错:
The project was not built since its build path is incomplete. Cannot find the class file for java.lang.Object. Fix the build path then try building this project;
The type java.lang.Object cannot be resolved. It is indirectly referenced from required .class files;
后来把 preferences --java--installed JREs 也改成对应的jdk版本,错误解决。
估计存在多个版本的jdk,在定位使用类时无法确定加载哪个导致的。