在项目上右键选择properties,然后点击Java build path,在Librarys下,编辑JRE System Library,选择 workspace default jre 即可 相关文章: