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

本文共 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/531553

你可能感兴趣的文章
Rest API 开发 学习笔记
查看>>
小练习:元素的拖放
查看>>
什么是ICE (Internet Communications Engine)
查看>>
移动web开发之屏幕三要素
查看>>
求按小时统计的语句,该怎么处理
查看>>
python中的@
查看>>
TRUNCATE,DORP,DELETE
查看>>
Chrome的开发必备小技巧
查看>>
can-i-win(好)
查看>>
Centos6.5下安装protobuf及简单使用
查看>>
[SharePoint] SharePoint 错误集 3
查看>>
高压光耦
查看>>
[转]DPM2012系列之六:在Win7上安装DPM远程管理控制台
查看>>
postgres函数
查看>>
Microsoft AJAX Library Cheat Sheet(5): Number和Error类型的扩展
查看>>
批处理设置Java环境变量/命令行设置Java环境变量
查看>>
POJ 3580 SuperMemo(splay)
查看>>
AfxGetMainWnd函数
查看>>
WebView增加一个水平Progress,位置、长相随意
查看>>
easyui messager alert 三秒后自动关闭提示
查看>>