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

以前用MyEclipse,现在用eclipse配置maven后,运行run install.报错:

1 [ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
2 [ERROR] -> [Help 1]
3 [ERROR] 
4 [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
5 [ERROR] Re-run Maven using the -X switch to enable full debug logging.
6 [ERROR] 

解决:

  1.   将设置中jre位置改成jdk。
  2. No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
  3. No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
  4.   右键maven项目,选择maven->update p....
  5. 重新run

本文转自Ryan.Miao博客园博客,原文链接:http://www.cnblogs.com/woshimrf/p/4871204.html,如需转载请自行联系原作者