这个是因为 项目右键build path --> configure build path -> 点击jre 然后如图配置。 2.解决: 就好了 哈哈哈哈哈哈 转载于:https://www.cnblogs.com/huo-94/p/7921383.html