---
title: "Java compiler level does not match the version of the installed Java project fac"
author: "HUS2013"
date: "2015-08-22T17:46:29Z"
tags: []
categories: ["开源软件"]
slug: "java-compiler-level-does-not-match-the-version-of-the-installed-java-project-fac"
draft: false
lastmod: "2015-08-22T17:48:14Z"
id: 2237302
url: "https://hus2013.iteye.com/blog/2237302"
---

今天新创建的Maven WEB项目,全部的代码都没问题但是就是项目上显示 红叉,

查看Eclipse 显示项目异常的Marker Tab, 说是

Java compiler level does not match the version of the installed Java project fact.

 

将项目设定的 java 版本改成正在用的即可,

具体操作:

右键项目“Properties”，在弹出的“Properties”窗口左侧，单击“Project Facets”，打开“Project Facets”页面。在页面中的“Java” 下拉列表中，选择相应版本就OK了

 

改动位置如下图示:  
![](http://dl2.iteye.com/upload/attachment/0111/1463/c7543634-df5f-39d8-a561-c1aa3c054b9a.jpg)