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

最近在做J2ME开发项目,配置环境一切OK,但是打开项目时某些文件提示: The type java.lang.String cannot be resolved. It is indirectly referenced from required .class files,经查阅是因为环境中的JRE冲突引起的,我是通过以下方式解决了问题。

 在Eclipse上依次打开Windows->Preferences->Java->Build Path->User Libraries,清空列表即可,如下图所示:

原文地址:https://www.cnblogs.com/csts/p/4699097.html