博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Java compiler level does not match the version of
阅读量:5786 次
发布时间:2019-06-18

本文共 2673 字,大约阅读时间需要 8 分钟。

  hot3.png

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

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的版本即可:

 

stackoverflow:

up vote
22 down vote
6

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."

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

   
|
asked 
Jul 8 '12 at 22:48
 
5,07743993
 
add a comment

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: 

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
 
1,042723
   
Thank you, but I don't see Project Facets anywhere under Project Properties: I am using Eclipse 3.7 on Mac Lion. Why might this be? –   
 
   
I've quickly looked for similar problems and I've found some pages about it. You can check them:, ,  –    
 
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. –    
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. –    
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? –    
 

转载于:https://my.oschina.net/liting/blog/531571

你可能感兴趣的文章
LNMP之Mysql主从复制(四)
查看>>
阅读Spring源代码(1)
查看>>
nagios一键安装脚本,nagios监控被监控主机上的应用服务mysql数据库
查看>>
grep 命令
查看>>
JS二维数组的声明和使用
查看>>
v$archive_gap dg dataguard 断档处理 scn恢复
查看>>
问责IT风险管理:CIO需关注两个重点
查看>>
Winform打包发布图解
查看>>
PDF文件怎么编辑,超简单的方法
查看>>
EasyUI基础入门之Easyloader(载入器)
查看>>
Uva 839 Not so Mobile
查看>>
30款超酷的HTTP 404页面未找到错误设计
查看>>
程序猿必备 MyEclipse2013-2014系列
查看>>
在图里, 你看到了什么? 5秒内看到的话, 你很牛
查看>>
java中ArrayList 、LinkList区别
查看>>
Spring ’14 Wave Update: Installing Dynamics CRM on Tablets for Windows 8.1
查看>>
利用rand7()构造rand10()
查看>>
MySQL 备份与恢复
查看>>
吃午饭前,按书上的代码写会儿--Hunt the Wumpus第一个版本
查看>>
easyui中combobox的值改变onchang事件
查看>>