今天在eclipse导入类的时,一直提示The import XXX cannot be resolved。
解决办法:
1)右击项目,选中build path 最下面下的configure build path
2)找到Libraries,发现jre system Libary 不符合要求
3)Remove掉这个不符合要求的 jre
4)点击Add Library,选择一个新的jre即可。
今天在eclipse导入类的时,一直提示The import XXX cannot be resolved。
解决办法:
1)右击项目,选中build path 最下面下的configure build path
2)找到Libraries,发现jre system Libary 不符合要求
3)Remove掉这个不符合要求的 jre
4)点击Add Library,选择一个新的jre即可。