项目导入The type java.lang.String cannot be resolved. It is indirectly referenced from required is indirectly referenced fr

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或是选择自己适合的包即可。 

posted @ 2019-10-18 16:04  凉了记忆  阅读(936)  评论(0编辑  收藏  举报