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,清空列表即可,如下图所示:

posted @ 2015-08-03 13:31  大刀客  阅读(1319)  评论(1编辑  收藏  举报