zoukankan      html  css  js  c++  java
  • 工程没有project facets选项和Java compiler level does not match的解决办法

    Java compiler level does not match the version of the installed Java project facet.  
     
    elipse这种情况一般可以在项目上右键-->properties-->然后找到project facets和 Java Compiler两个选项,修改其使用的jdk版本即可。如果没有找到project facets选项,可以参考下面的方法:
     
    Eclipse中没有Project Facets配置选项,则需要到当前项目的.settings文件夹下,找到org.eclipse.wst.common.project.facet.core.xml文件,其内容如下:
     
    <?xml version="1.0" encoding="UTF-8"?>
    <faceted-project>
    <fixed facet="wst.jsdt.web"/>
    <installed facet="java" version="1.6"/>
    <installed facet="jst.web" version="2.5"/>
    <installed facet="wst.jsdt.web" version="1.0"/>
    </faceted-project>
     
    其中<installed facet="java" version="1.6"/>这行就是faceted project的编译级别配置。
    <installed facet="jst.web" version="2.5"/>这行配置在某些情况下也需要修改,比如在MyEclipse中建了个web项目,后来又导入到eclipse jee,有时候就需要修改这个配置。
    保存配置后,刷新并build项目后,问题解决。
  • 相关阅读:
    小程序登陆流程解析
    小程序连续点击bug解决
    小程序开发文本空格的添加
    微信小程序转支付宝小程序
    支付宝小程序开发入门
    微信小程序开发入门
    text属性
    小程序横向滚动
    will-change
    Docker 系列二(操作镜像).
  • 原文地址:https://www.cnblogs.com/huapox/p/3516115.html
Copyright © 2011-2022 走看看