zoukankan      html  css  js  c++  java
  • Description Resource Path Location Type Java compiler level does not match the version of the instal

     

    解决办法

    在项目上右键Properties-》Project Facets,在打开的Project Facets页面中的Java下拉列表中,选择相应版本。
    有可能是java1.6 改成java6之类的

     

    从别的地方导入一个项目的时候,经常会遇到eclipse/Myeclipse报Description  Resource Path Location Type Java compiler level does not match the version of the installed Java project facet.出现这个问题的原因是因为,eclipse/myeclipse的jdk编译版本与出现问题的项目JDK编译版本不一致所导致!

    Java compiler level does not match解决方法

    工具/原料

    • eclipse/MyEclipse

    方法/步骤

    1. 先设置好jdk,需要确定 项目,eclipse/myeclipse,系统 用的是同一个版本的JDK,我系统中安装的JDK是1.7,所以我把eclipse的jdk成1.7

      Java compiler level does not match解决方法

    2. 进入 windows---proferences---java--compiler设置编译出来的文件使用的格式是 1.7版本的 (设置成多少都行,只要兼容,并且与你项目的编译版本一直就可以,我这里统一设置成1.7)

      Java compiler level does not match解决方法

    3. 进入项目--properties---java Compiler 把项目编译版本也设置成 1.7

      Java compiler level does not match解决方法

    4. 进入项目--properties---Myeclipse---project Facets设置java文件的版本为 1.7

      Java compiler level does not match解决方法

  • 相关阅读:
    IntPutStream字节输入流
    FileOutPutStream
    FileOutPutStream 一次写多个字节
    OutPutStream
    FileFilter 2
    FileFilter
    Selenium请求过快 解决方法
    Selenium 定位元素的方法
    Selenium自动化环境安装
    Appium定位元素方法
  • 原文地址:https://www.cnblogs.com/Jeely/p/6664587.html
Copyright © 2011-2022 走看看