1、在项目上右键properties->MyEclipse->project Facets->java修改右侧的version 保持一致
2、window->preferences->Java->Compiler->设置右侧的Compiler compliance level
3、window->preferences->java->Installed JREs->设置或者选择右侧的Installed JREs