`

No compiler is provided in this environment. Perhaps you are running on a JRE ra

阅读更多

maven编译项目时出错,提示信息如下:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:testCompile (default-testCompile) on project springside-core: Compilation failure

[ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
[ERROR] -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:

[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

 

解决方案:

  1. 下载java jdk,并安装java jdk。下载地址:http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html
  2. 在eclipse的菜单中,进入 Window > Preferences > Java > Installed JREs > Execution Environments,选择JavaSE-1.6, 在右侧选择jdk.

  3. 然后在maven菜单中使用 “update project ...”.

分享到:
评论

相关推荐

    jdk1.8下tools.jar(url)

    其中,“No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?”是一个常见的错误提示,尤其是在使用Maven进行项目构建时。该错误提示表明当前环境中没有找到Java...

    maven找不到编译器2

    错误信息提示:“No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?” 这意味着你的系统环境中可能只配置了Java运行时环境(JRE),而没有配置Java开发工具包...

    Java编译器用maven打war包出错解决办法

    Perhaps you are running on a JRE rather than a JDK? 错误原因:eclipse默认选择jre运行程序,而maven的install要求使用jdk,因此报编译环境找不到的错误。 解决方法:将jre改为jdk 详细步骤: 1. 项目右键...

    plexus-compiler--2.8.4.jar.rar

    这个压缩包文件"plexus-compiler--2.8.4.jar.rar"包含了Plexus Compiler的三个关键模块,分别是plexus-compiler-api-2.8.4.jar、plexus-compiler-javac-2.8.4.jar和plexus-compiler-manager-2.8.4.jar,这些文件版本...

    Modern Compiler Design Dick Grune

    1.1.1 Compiler construction is very successful . . ............... 6 1.1.2 Compiler construction has a wide applicability ........... 8 1.1.3 Compilers contain generally useful algorithms . .............

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

    2、Modern.Compiler.Implementation.in.Java.Second.Edition.chm Last year you may have seen the Modern Compiler Implementation in C: Basic Techniques (1997) which was the preliminary edition of our new ...

    kotlin-compiler-embeddable-1.3.61.jar

    官网版:kotlin-compiler-embeddable-1.3.61

    Senfore_DragDrop_v4.1

    This is believed to be a bug in the Windows clipboard and a work around hasn't been found yet. * Asynchronous targets appears to be broken in the current release. * When TDropFileTarget....

    Intel.C++.Compiler.Professional.v11.1.060 licence

    Intel.C.Plus.Plus.Compiler.Professional.v11.1.060 的 licence 文件 ,经测试可用,另附安装说明。

    kotlin-compiler-embeddable-1.3.72.jar

    有时候网络下载不下来,这是下好的。 Android Studio3.6.3 所使用的kotlin插件1.3.72版本的zip包,在Android Studio的设置中安装本地插件即可

    kotlin-compiler-embeddable-1.3.50.jar

    kotlin-compiler-embeddable-1.3.50.jar下载后直接可用(亲测)。Could not download kotlin-compiler-embeddable.jar,是墙的原因 没有下载下来kotlin-compiler-embeddable.jar的jar包资源。 把下载好的jar,放在...

    Springer.The.Developer’s.Guide.to.Debugging.2008.pdf

    5.7.1 Check that There are No Major Leaks . . . . . 56 5.7.2 Estimate the Expected Memory Use . . . . . . . 56 5.7.3 Measure Memory Consumption . . . . . . . 57 5.7.4 Find the Data Structures that ...

    kotlin-compiler-embeddable-1.4.10.jar

    文件:kotlin-compiler-embeddable-1.4.10.jar下载,kotlin开发必备

    Keil.ARM_Compiler.1.6.3.pack

    电脑需先安装Keil MDK5。此固件库为Keil官方提供,直接双击安装即可,安装成功后在MDK5工程的Device中验证,或者在PACK安装页面选择File->Import 官网下载比较慢,为方便大家提供分享

    compiler.jar.rar

    《JavaScript编译与压缩工具——compiler.jar》 在现代互联网开发中,JavaScript作为一种重要的脚本语言,被广泛应用于网页和应用程序的动态交互。为了提高页面加载速度和优化资源管理,开发者通常会对JavaScript...

Global site tag (gtag.js) - Google Analytics