---
title: "Eclipse下Java compiler level does not match the version of the installed Java pro"
author: "yipbxx"
date: "2014-03-19T18:18:34Z"
tags: []
categories: ["Web前端"]
slug: "eclipse-java-compiler-level-does-not-match-the-version-of-the-installed-java-pro"
draft: false
lastmod: "2014-03-19T18:18:34Z"
id: 2033718
url: "https://yipbxx.iteye.com/blog/2033718"
---

问题现象：项目图标报错“Java compiler level does not match the version of the installed Java project facet.”。

问题原因：
Facted Project 中的Java 版本设定与项目的Java编译器的compliance level设定不一致。

解决办法：
把两者设置成相同。
第一步：查看Compiler compliance level
右键Project | Properties | Java Compiler(type filter text输入compiler可快速定位)，如下图所示：![](http://pic002.cnblogs.com/images/2012/394489/2012040215142857.png)
根据图中显示可知，Compiler compliance level是6.0（当然您的项目该值很可能不是6.0）

第二步：修改Project Facets的Java值，使之和Compiler compliance level相同：
右键Project | Properties | Project Facets(type filter text输入facet可快速定位)：
![](http://pic002.cnblogs.com/images/2012/394489/2012040215184133.png)
=>选中Java那行
=>点击Modify Project...按钮
![](http://pic002.cnblogs.com/images/2012/394489/2012040215263647.png)
=>修改Java的值，使之和Compiler compliance level相同(本例为6.0)

大功告成！