Error!]the type java.lang.String cannot be resolved. it is indirectly referenced from required .class files
Sometimes there will be more mistakes when you import a foreign engineering myeclipse, mainly because your computer is more than one version of jdk installed, the solution is: the steps:
project-> properties-> Java Bulid Path deletes the original jdk
then Java Build Path -----> Libraries ----> Add Libraries -----> JRE System Library or choose MyEclipse comes with jdk to choose their own package.