zoukankan      html  css  js  c++  java
  • No compiler is provided in this environment. Perhaps you are running on a JR

    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,在eclipse的菜单中,进入 Window > Preferences > Java > Installed JREs ->Add ->Standard VM

    jre home 选择jdk安装目录,然后选中

     2,右键项目build path

    jdk是开发工具 

    jre是运行环境 

    编译用的都是jdk的resources嘛,开发时不能只有运行库,应该具备开发库,就是这个意思。

    另外***is not a servlet的错

     servlet和jsp的作用域加上就可以

  • 相关阅读:
    javascript 变量定义
    javascript之String
    javascript之object
    javascript之Number
    javascript之window对象
    javascript全局对象
    【NOIP2017】【Luogu3951】小凯的疑惑
    【NOIP2008】【Luogu1149】火柴棒等式
    【NOIP2008】【Luogu1125】笨小猴
    【NOIP2005】【Luogu1051】谁拿了最多奖学金
  • 原文地址:https://www.cnblogs.com/sheseido/p/11457582.html
Copyright © 2011-2022 走看看