The type java.lang.Object cannot be resolved It is indirectly referenced from re

在采用MyEcLipse开发的过程中,常遇到以下几处处错误,解决方法很简单:
1.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

2.The type java.lang.Object cannot be resolved. It is indirectly referenced from required .class files

 

3.implort一个工程,出现一些莫名其妙的问题
解决办法:
1.由于IDE会自动选择系统装的jdk和jre,当系统中从在多个jdk时候就会无法选择,此时需要在IDE中选择你所需要的JDK和jre,同时在Java Bulid Path下面也应有被选择的jre,若果没有将Java Bulid Path中把所有的JRE先remove掉,然后重新引入JRE即可。(Project->properties->Java Bulid Path )

2.可以clean一些当下工程(project—>clean)解决或者也有可能是jar包冲突

你可能感兴趣的:(reference)