`

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)

    mvn打包的时候可能就会出现No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?问题;加入tools.jar就好了;

    Cb (C flat) compiler. Cb is simplified C..zip

    Cb (C flat) compiler. Cb is simplified C.

    plexus-compiler--2.8.4.jar.rar

    plexus-compiler-api-2.8.4.jar plexus-compiler-javac-2.8.4.jar plexus-compiler-manager-2.8.4.jar

    compiler-aho.pdf 2nd Edition

    In the time since the 1986 edition of this book, the world of compiler design has changed significantly. Programming languages have evolved to present new compilation problems. Computer architectures ...

    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 文件 ,经测试可用,另附安装说明。

    .NET Development Using the Compiler API

    This is the first book to describe the recent significant changes to the .NET ... However, the API is vast, and this concise book provides a valuable roadmap to this new development environment.

    kotlin-compiler-embeddable-1.3.61.jar

    官网版:kotlin-compiler-embeddable-1.3.61

    Getting Started with LLVM Core Libraries

    Some topics are explained with compelling hands-on examples that you are encouraged to try out., This book is intended for enthusiasts, computer science students, and compiler engineers interested in ...

    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 ...

    .NET Development Using the Compiler API(Apress,2016)

    This is the first book to describe the recent significant changes to the .NET ... However, the API is vast, and this concise book provides a valuable roadmap to this new development environment.

    C compiler created in Python..zip

    C compiler created in Python.

    kotlin-compiler-embeddable-1.3.72.jar

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

    IAR STM8开发手册

    When you start using the IAR C/C++ compiler and linker for STM8, you should read Part 1. Using the build tools in this guide. When you are familiar with the compiler and linker and have already ...

    jj.zip_Kept

    Directories ...The compiler itself is a DLL file. The DLL files are in a DLL directory by default in C:\Program Files\PICC\DLL. Old compiler versions may be kept by renaming this directory.

    compiler-latest.tar.gz

    百度编辑器ueditor编译的时候,需要的一个压缩包,该压缩包是从google获取的,下载地址为https://dl.google.com/closure-compiler/compiler-latest.tar.gz,

    CompilerTool源码(Delphi).7z

    CompilerTool源码(Delphi).7z

Global site tag (gtag.js) - Google Analytics