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

来源:互联网 发布:恒生电子 知乎 编辑:程序博客网 时间:2024/06/05 13:30

编译项目时报以下错误:Java compiler level does not match the version of the installed Java project facet.

项目编译报这个错,解决方案如下:
1. 右击项目后点击“Properties”
2. 在弹出的“Properties”窗口左侧,单击“Project Facets”
3. 右侧找到java版本,改成相应版本即可,相应版本应该是指eclipse里配的installed jres
如下图:
这里写图片描述

阅读全文
0 0
原创粉丝点击