【maven】No compiler is provided in this environment. Perhaps you are running on a JRE

原创 2015年11月20日 16:18:48


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



解决方案:

【增加JDK目录】  

  1. 安装好java jdk。
  2. 在eclipse的菜单中,进入 Window > Preferences > Java > Installed JREs ,add 按钮。 选择jdk1.7;

  3. 图中的Location 改为 C:\Program Files\Java\jdk1.7.0_79

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


Eclipse中,No compiler is provided in this environment. Perhaps you are running on a JRE rather than a

Eclipse中,No compiler is provided in this environment. Perhaps you are running on a JRE rather than...

No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK

使用Maven中的maven-build来本地调试项目,启动后在console出现如下错误信息 [ERROR] Failed to execute goal org.apache.maven.plug...

No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?

控制台输出的错误信息如下:[INFO] Scanning for projects... [INFO] [INFO] Using the builder org.apache.maven.lifec...

Maven Error:No compiler is provided in this environment的解决办法

Maven Error:No compiler is provided in this environment的解决办法

关于Maven项目build时出现No compiler is provided in this environment的处理

近日有同事遇到在编译Maven项目时出现 [ERROR] No compiler is provided in this environment. Perhaps you are running on...

解决maven项目install之后报出Perhaps you are running on a JRE rather than a JDK?错误

不管在什么地方,什么时候,学习是快速提升自己的能力的一种体现!!!!!!!!!!! 前几天安装了新的eclipse,今天创建了一个maven项目测试下自己写的代码,结果 在install的时候报出...

Eclipse中运行Maven打包编译时出现:Perhaps you are running on a JRE rather than a JDK?

出现错误后,查看了许多网友的解决方式,但都没有解决我遇到的问题,可能是情况还是有些许的不同;下面直接说说我的问题的解决办法,希望对大家有所帮助;Eclipse中Maven报错信息如下: 本以为可...

解决Perhaps you are running on a JRE rather than a JDK ?的问题

Maven-No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JD...
  • Ludwig_
  • Ludwig_
  • 2017年07月18日 18:41
  • 211

解决Perhaps you are running on a JRE rather than a JDK?问题

Maven-No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JD...
  • lxlhu
  • lxlhu
  • 2015年04月15日 11:50
  • 4857

There are 1 datanode(s) running and no node(s) are excluded in this operation.错误

在编写jsp的时候发现这个问题,百度了良久之后发现这个问题在这个人的文档里给出了想当的解释,http://blog.sina.com.cn/s/blog_4c248c5801014nd1.html ...
  • Pro_jhf
  • Pro_jhf
  • 2015年09月13日 00:21
  • 2826
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:【maven】No compiler is provided in this environment. Perhaps you are running on a JRE
举报原因:
原因补充:

(最多只允许输入30个字)