文档章节

Java compiler level does not match the version of

五大三粗
 五大三粗
发布于 2015/11/17 15:41
字数 538
阅读 75
收藏 0

修改了编译级别之后出现如下错误提示:

Description ResourcePath LocationType

Java compiler level does not match the version of the installed Java project facet.SSJ UnknownFaceted Project Problem (Java Version Mismatch)

只要在项目的properties中选择project facet然后修改java的版本即可:

0_1320670666x5WZ

 

stackoverflow:

I made a simple Java Google AppEngine application called Guestbook in Eclipse 3.7 and am trying to run it. However, I am encountering an error that lacks a quick fix:

Description Resource Path Location Type Java compiler level does not match the version of the installed Java project facet. Guestbook Unknown Faceted Project Problem (Java Version Mismatch)

I tried navigating to Project | Properties to change my project facet. However, I could not find a setting that dealt with "facet."

2N4Mp

What does "installed Java project facet" mean, and how do I fix this?

asked  Jul 8 '12 at 22:48
David Faux 
5,07743993
 

3 Answers

up vote 55 down vote accepted

You can see your facets via Right click on your project->properties->Project Facets,

Here you can see my facets for an example web application: eBm7e

I think your Java facet does not match with the installed one. I'm suspicious that facet is at version 1.5. Please check it.

Add-on:Open the Navigator view, expand the .settings folder, open the file org.eclipse.wst.common.project.facet.core.xml and manually set the Java version to 1.6.

answered  Jul 8 '12 at 23:05
GokcenG 
1,042723
   
Thank you, but I don't see Project Facets anywhere under Project Properties:i.imgur.com/9LqSf.png I am using Eclipse 3.7 on Mac Lion. Why might this be? –  David Faux  Jul 8 '12 at 23:09 
   
I've quickly looked for similar problems and I've found some pages about it. You can check them:123 –   GokcenG  Jul 8 '12 at 23:15 
8  
Did you read the 3rd one? Open the Navigator view, expand the .settings folder, open the file org.eclipse.wst.common.project.facet.core.xml and manually set the Java version to 1.6. –   GokcenG  Jul 8 '12 at 23:20
1  
There have been a couple reports of this problem from people using Google App Engine tooling. It appears that they are installing Faceted Project Framework without its corresponding UI, leaving users in the bind. Please report this issue to Google. In the meantime, GokcenG's advice of editing the specified configuration manually should unblock you. –   Konstantin Komissarchik  Jul 8 '12 at 23:29
3  
Thank you! Solution number 3 did it. So, here's the fix I did again. 1) Switch to the Navigator Perspective (Window > Show Perspective > Navigator). 2) Open "org.eclipse.wst.common.project.facet.core.xml" under ".settings". 3) Changed my project facet from 1.4 to 1.6. This problem occupied me for the past 2 hours. Thanks a lot! I hope this thread helps others who encounter the same error. How does one report issues to Google by the way? –   David Faux  Jul 8 '12 at 23:31 

© 著作权归作者所有

五大三粗
粉丝 163
博文 2293
码字总数 4767276
作品 0
广州
程序员
私信 提问
Java compiler与installed Java project face不匹配解决方法

错误截图 2.原因分析 This error is because of maven compiler plugin defaults. Which is currently 1.5. So if you are using java 1.6 for building your project, you are going to fa......

残风vs逝梦
2015/08/30
148
0
解决Java compiler level does not match the version of the installed Java project facet问题

Java compiler level does not match the version of the installed Java project 主要是说:“Java 编译器的版本与项目中的设置版本不一致”。一般情况下项目可以正常运行,但是在项目文件夹...

u012843873
2018/04/19
0
0
Java compiler level does not match the version

其他电脑上的项目,复制到本地后,报错Description Resource Path Location Type Java compiler level does not match the version of the installed Java project facet. taip Unknown Face......

zhaochaochao
2018/07/04
22
0
Eclipse的maven项目自动重置jdk版本的问题

eclipse上创建maven项目,随着调用jar的扩大,需要修改pom.xml文件 然后点击保存,然后update project进行更新。 我发现,不知道为什么,我明明将eclipse上这个项目的build path里面的jre修改...

pandamonica
2018/09/07
0
0
解决Unsupported major.minor version 51.0问题的感悟

今天偶然间同事遇到一个问题,也加深了自己对eclipse中build path和java compiler compliance level的理解。 问题是这样的,同事在eclipse中开发的项目,导成jar之后,放到服务器上,总是报“...

刘梓航
2014/11/05
1K
0

没有更多内容

加载失败,请刷新页面

加载更多

聊聊rocketmq的AccessChannel

序 本文主要研究一下rocketmq的AccessChannel AccessChannel rocketmq-client-4.5.2-sources.jar!/org/apache/rocketmq/client/AccessChannel.java public enum AccessChannel { /** ......

go4it
昨天
4
0
自己实现 aop 和 spring aop

上文 说到,我们可以在 BeanPostProcessor 中对 bean 的初始化前化做手脚,当时也说了,我完全可以生成一个代理类丢回去。 代理类肯定要为用户做一些事情,不可能像学设计模式的时候创建个代...

sanri1993
昨天
4
0
Java 8 Stream Api 中的 skip 和 limit 操作

1. 前言 Java 8 Stream API 中的skip()和limit()方法具有类似的作用。它们都是对流进行裁剪的中间方法。今天我们来探讨一下这两个方法。 2. skip() skip(lang n) 是一个跳过前 n 个元素的...

码农小胖哥
昨天
1
0
看中华小当家第二集片段记录

最近正好在学习做饭,看看这片子,燃烧燃烧做饭的热情 哈哈,以下是摘的一些句子和个人理解 My name is Liu Mao Xing . More commonly known as Mao. 个人理解:我的名字叫 刘昴星, (commo...

T型人才追梦者
昨天
3
0
Python基础-6

1、注释 # 单行注释'''多行注释'''"""多行注释"""# 中文编码声明注释 ,在文件开头加上下面这行注释# encoding=utf-8或者# -*- encoding:utf-8 -*- (-*- 只是为了美观,没有实际......

zfskkk
昨天
5
0

没有更多内容

加载失败,请刷新页面

加载更多

返回顶部
顶部