The type java.lang.String cannot be resolved. It is indirectly referencedfrom required .class files?

Error!]the type java.lang.String cannot be resolved. it is indirectly referenced from required .class files

有时候用myeclipse导入一个外来的工程时会出现以上错误,这主要是因为你的电脑上安装了多个版本的jdk,解决的办法是:操作步骤:

project->properties->Java Bulid Path 将原有的jdk删除

然后Java Build Path -----> Libraries---->Add Libraries----->JRE System Library 选择MyEclipse自带的jdk或是选择自己适合的包即可。
The type java.lang.String cannot be resolved. It is indirectly referencedfrom required .class files?
效果如下:The type java.lang.String cannot be resolved. It is indirectly referencedfrom required .class files?
或者如下:The type java.lang.String cannot be resolved. It is indirectly referencedfrom required .class files?
The type java.lang.String cannot be resolved. It is indirectly referencedfrom required .class files?