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

来源:互联网 发布:mysql怎么设置两个主键 编辑:程序博客网 时间:2024/06/08 14:28
以前用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
0 0
原创粉丝点击