有时用eclipse导入一个工程时,其他地方没问题只有工程名上有个 红叉。
解决办法:在工程名右键Properties-->Java Compiler-->Enable project specific settings打钩
然后jdk版本选择为自己的eclipse使用的版本。