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.   右键maven项目,选择maven->update p....
  3. 重新run
posted @ 2015-10-12 11:47  Ryan.Miao  阅读(476)  评论(0编辑  收藏  举报