码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2016-05-16 19:21:06      阅读:356      评论:0      收藏:0      [点我收藏+]

标签:

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

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1: Compilation failure
[ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
  • 在Eclipse的菜单中,进入 Window > Preferences > Java > Installed JREs > Execution Environments,选择JavaSE-1.7, 在右侧选择jdk.技术分享

  • 然后在maven菜单中使用 "update project ...".

技术分享

 

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

标签:

原文地址:http://www.cnblogs.com/winner-0715/p/5498782.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!