文档章节

Java compiler level does not match the version of

五大三粗
 五大三粗
发布于 2015/11/17 15:22
字数 538
阅读 57
收藏 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

没有更多内容

加载失败,请刷新页面

加载更多

技术分享 | MySQL 8.0:字符集从 utf8 转换成 utf8mb4

作者:胡呈清 整理 MySQL 8.0 文档时发现一个变更:默认字符集由 latin1 变为 utf8mb4。想起以前整理过字符集转换文档,升级到 MySQL 8.0 后大概率会有字符集转换的需求,在此正好分享一下。...

爱可生
13分钟前
2
0
不管单机还是集群的限流实现已经给你准备好了

限流算法 计数器算法 维护一个counter,规定在单位时间内counter的大小不能超过最大值,每隔固定时间就将counter的值置零。如果这个counter大于设定的阈值,那么系统就拒绝请求 漏桶算法 维护...

阿提说说
25分钟前
3
0
文件管理

通过CLI登录进行文件管理 .表示当前目录,..表示父目录,具有隐藏文件。支持缩写与TAB键补全 1、目录操作 pwd#打印工作目录 cd <directory>#改变工作目录 dir [/all][<directory>]#查看目录内...

悠悠子佩
27分钟前
3
0
Netty学习笔记(10)——Netty中的Channel组件

1. Channel的功能 1. 与NIO中的Channel一样,它实现了网络操作的抽象类,聚合了一系列的网络IO功能,包括读写数据、建立连接、关闭连接等功能。通过外观模式,将数据读写、连接建立与断开等操...

江左煤郎
31分钟前
2
0
二叉树的深度

从根结点到叶结点依次经过的结点(含根、叶结点)形成树的一条路径,最长路径的长度为树的深度。 public int TreeDepth(TreeNode root) { return root == null ? 0 : 1 + Math.max(Tree...

Garphy
38分钟前
2
0

没有更多内容

加载失败,请刷新页面

加载更多

返回顶部
顶部