简体   繁体   English

不支持Project facet Java 1.7版

[英]Project facet Java version 1.7 is not supported

When i update my java I found the issue "Project facet Java version 1.7 is not supported" To resolve this issue follow the steps. 当我更新我的java时,我发现问题“不支持Project facet Java 1.7”要解决此问题,请按照步骤操作。

  1. Go to Ecllipse , right click on your project folder 转到Ecllipse,右键单击项目文件夹
  2. select the properties 选择属性
  3. now select Project Facets ,here you will see java, click on the version and change the higher version to lower or as per your requirement . 现在选择Project Facets,在这里您将看到java,单击版本并将更高版本更改为更低版本或根据您的要求。

在此输入图像描述

You need to check what type of JRE is there installed in your IDE, 您需要检查IDE中安装的JRE类型,

JRE

I had also encountered the same problem a while ago when upgrading from Java version 1.6 to 1.7. 从Java 1.6升级到1.7时,我也遇到过同样的问题。 To resolve this I followed below steps. 要解决此问题,我按照以下步骤操作

  1. Right Click on the Project on Project Explorer and click on Properties. 右键单击Project Explorer上的Project,然后单击Properties。
  2. Navigate to Java Build Path > “Libraries” 导航到Java Build Path>“Libraries”
  3. Delete any conflicted libraries which have red cross mark on the icons. 删除图标上带有红叉标记的所有冲突库。
  4. Check & edit if necessary the JRE System Library Jars. 必要时检查并编辑JRE系统库罐。
  5. Navigate to Project Facets and select the required java version. 导航到Project Facets并选择所需的Java版本。

Source: https://tipandtech.wordpress.com/2013/09/13/error-project-facet-java-version-1-7-is-not-supported-in-eclipse/ 资料来源: https//tipandtech.wordpress.com/2013/09/13/error-project-facet-java-version-1-7-is-not-supported-in-eclipse/

Try them if you have not found the solution yet. 如果您还没有找到解决方案,请尝试使用它们。

Shishir Shishir

I've just had the same thing. 我刚才有同样的事情。 My solution was to remove the 1.6 JRE in Installed JRE's and tick the Java 1.7 one. 我的解决方案是删除Installed JRE中的1.6 JRE并勾选Java 1.7。

This can be found in Window --> Preferences --> Java --> Installed JRE's 这可以在Window - > Preferences - > Java - > Installed JRE中找到

Just as Boopathi says. 正如Boopathi所说。

双击Tomcat服务器 - >运行时环境 - >安装jre->选择jdk 1.7

更改服务器指向的jre(tomcat或任何...)指向JDK而不是JRE

在Window - > Preferences - > Java compiler中检查JDK的版本,然后在Window - > Preferences - > Project Facets - > Java中设置相同的JDK

1.Window Menu -> Preferences 2.On the left, select Server -> Runtime Environments 3.Highlight The server you want for your project and select the “Edit…” button 4.On the “Edit Server Runtime Environment” dialog, change the JRE to be a Java 7 JDK or JRE. 1.Window菜单 - >首选项2.在左侧,选择服务器 - >运行时环境3.突出显示项目所需的服务器,然后选择“编辑...”按钮4.在“编辑服务器运行时环境”对话框中,更改JRE是Java 7 JDK或JRE。 5.Rebuild your project and the error should go away. 5.重建你的项目,错误应该消失。

当我遇到同样的问题时,我通过改变工作空间解决了这个问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM