eclipse:The type java.lang.Object cannot be resolved. It is indirectly referenced from required

eclipse出现:The type java.lang.Object cannot be resolved. It is indirectly referenced from required 错误,

是因为导入Elcipse的工程classpath中指定的JDK版本和你eclipse中JRE的版本不符,Project->build path->config build path, 然后把它用到JRE System library给remove,再add你的jre就行了

你可能感兴趣的:(java)