myeclipse 项目图标 一切正常,但是点开java文件,里面到处都是错误,鼠标放到最上面package时,报错:
The type java.lang.Object cannot be resolved.It is indirectly referenced from required.class files;
解决办法:
进入windowpreferencesjavaInstalled JREs
1)按Add
2)输入JRE Name, 例JDK1.5.0.03
3)JRE home directory, 选择安装的路径
4)按OK
b. 进入ProjectpropertiesJava Bulid Path
1)Add library
2)选JRE System Library后按Next
3)选workplace default JRE后按finish...