`
endual
  • 浏览: 3544304 次
  • 性别: Icon_minigender_1
  • 来自: 杭州
社区版块
存档分类
最新评论

Java compiler level does not match the version of the installed Java project fa

    博客分类:
  • java
 
阅读更多

http://www.cnblogs.com/maoruilin/archive/2012/04/02/java_compiler_level.html
http://www.blogjava.net/JetGeng/archive/2007/10/15/152982.html


Java compiler level does not match the version of the installed Java project facet.
今天用Eclipse时报这个错误:

?
Java compiler level does not match the version of the installed Java project facet.
以前没有碰到过,花了半个多小时才搞定,现把解决办法记下来,免得下次再遇到这个问题又要花那么多时间。

问题原因:

Facted Project 中的Java 版本设定与项目的Java编译器的compliance level设定不一致。

解决办法:

把两者设置成相同。

第一步:查看Compiler compliance level

右键Project | Properties | Java Compiler(type filter text输入compiler可快速定位),如下图所示:



根据图中显示可知,Compiler compliance level是6.0(当然您的项目该值很可能不是6.0)



第二步:修改Project Facets的Java值,使之和Compiler compliance level相同:

右键Project | Properties | Project Facets(type filter text输入facet可快速定位):



=>选中Java那行

=>点击Modify Project...按钮





=>修改Java的值,使之和Compiler compliance level相同(本例为6.0)



大功告成!

标签: Java, Eclipse
绿色通道: 好文要顶 关注我
分享到:
评论

相关推荐

    JavaVersionMismatch

    Java compiler level does not match the version of the installed Java project facet. Unknown Faceted Project Problem (Java Version Mismatch) 1、preferences > java > Installed JRES > 选择java version ...

    JavaCompiler --JDK6 API的简介(java动态编译)

    JavaCompiler --JDK6 API 的简介(java动态编译) JavaCompiler 是 Java 中的一个编译器接口,提供了编译 Java 源代码的功能。在 Java SE6 中,JavaCompiler 接口是 javax.tools 包的一部分,提供了标准的方式来...

    通过JavaCompiler进行编译java文件(转载)

    Java Compiler API,即`javax.tools.JavaCompiler`,提供了这样的功能,使得我们可以直接在程序中完成Java源代码的编译过程。本文将深入探讨如何使用JavaCompiler API来编译Java源文件。 首先,`JavaCompiler`是...

    Java反编译工具 javacompiler

    `javacompiler`并不是标准的Java反编译器,它实际上是Java开发工具包(JDK)的一部分,主要用于编译Java源代码。然而,Java反编译工具有很多种,如JD-GUI、JAD、FernFlower等,它们能够将已编译的`.class`文件转换回...

    Error:java: Compilation failed: internal java compiler error

    在使用IntelliJ IDEA(简称Idea)进行Java开发时,有时会遇到“Error:java: Compilation failed: internal java compiler error”的错误提示,这通常意味着编译过程中遇到了内部错误,可能是由于配置问题、环境问题...

    ARM Compiler Version 5编译器

    用MDK编译正点原子的例程,发现怎么一样的例程编译出一百多个error,还报错*** Target ‘LED’ uses ARM-Compiler ‘Default Compiler Version 5’ which is not available. 按照这篇博文详细说明怎么解决这个错误...

    ARM compiler version5.06

    **ARM Compiler Version 5.06 知识详解** ARM Compiler是ARM公司开发的一款高度优化的编译器工具链,专为ARM架构的处理器设计,用于构建高效、高性能的嵌入式软件。版本5.06是这个系列的一个重要里程碑,它在编译...

    ARM compiler version 5

    ARM Compiler Version 5是ARM公司推出的一款针对嵌入式系统开发的编译工具链,它在Keil MDK(Microcontroller Development Kit)中扮演着重要角色。Keil MDK是广泛使用的ARM微控制器开发环境,集成了编译器、调试器...

    xcode报错SDK does not contain 'libarclite' at the path

    然而,开发者们时常会遇到各种各样的错误,其中“SDK does not contain 'libarclite' at the path”是一个常见的问题,主要与Apple的Automatic Reference Counting (ARC)机制有关。本文将深入探讨这个错误的原因、...

    java编译器源码 java compiler Source

    java编译器gjc源码 Java编译器源码 java编译环境 -GJC source java compiler java compiling environment java compiler code java compiler Source

    java compiler没有1.8怎么解决

    在Java开发过程中,Java Compiler(编译器)是至关重要的工具,它负责将源代码转换为可执行的字节码。然而,有时开发者可能会遇到Java Compiler不支持特定版本,例如Java 1.8的情况。这通常发生在更新了JDK或者...

    ARM Compiler v5.01, Build 94 for Linux

    5.01u1 and 5.01u2) of the same feature release installed in the same machine is not supported. This update consists of an updated compiler, linker, assembler, fromelf, and armar program executables,...

    Compiler Version 5编译器

    标题提到的"Compiler Version 5编译器"指的是Keil的MDK-ARM(Microcontroller Development Kit for ARM)中的编译工具链,也被称为ARMC5。这个版本的编译器针对C和C++语言,提供了对ARM Cortex系列处理器的强大支持...

    ARM Compiler v5.05, Build 169 for Windows

    Multiple feature releases of ARM Compiler 5, having different version numbers, can be installed on a single machine. Having two or more update versions (e.g. 5.01u1 and 5.01u2) of the same feature ...

    现代编译原理-Java语言描述

    A unique feature of the book is a well designed compiler implementation project in Java, including front-end and 'high-tech' back-end phases, so that students can build a complete working compiler in...

    zookeeper:zookeeper原始码分析

    错误1:编译完成后,用Eclipse打开编译错误,显示Java compiler level does not match 和 '<>' operator is not allowed for source level below 1.7错误。 修改方法:右键项目--属性--勾选Enable project ...

    ARM Compiler 5 Version 5.6u7

    《ARM Compiler 5 Version 5.6u7与keil5 V5编译器详解》 在嵌入式系统开发领域,编译器扮演着至关重要的角色,它们将程序员编写的高级语言转换为处理器可执行的机器代码。本文将深入探讨 ARM Compiler 5 Version ...

    ARM Compiler Version 5版本的编译器ARMCC

    ARM Compiler Version 5是ARM公司推出的针对ARM架构处理器的一套高效、优化的编译工具链。这个版本的编译器,ARMCC,是为开发者提供的一整套开发环境,包括了编译器、链接器、汇编器以及相关的调试工具,用于编写、...

    Tesseract-OCR.rar

    Note that this is a text-only and possibly out-of-date version of the wiki ReadMe, which is located at: http://code.google.com/p/tesseract-ocr/wiki/ReadMe Introduction ============ This package ...

Global site tag (gtag.js) - Google Analytics