报错:Java compiler level does not match the version of the installed Java project facet.

电脑里面安装了两个JDK,目前项目使用的是JDK1.7,出现如下错误:
在这里插入图片描述

1.Window->Preferences->Java->Compiler,修改配置:
在这里插入图片描述

2.右击项目->properties->Java Compiler,修改配置:
在这里插入图片描述
3.右击项目,Build Path ->Configure ->Java Build Path->Libraries
在这里插入图片描述 4.Updata Project。