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

参见:http://blog.csdn.net/fox_lht/article/details/16369147

解决方案:

  1. 下载java jdk,并安装java jdk。下载地址:http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html
  2. 在eclipse的菜单中,进入 Window > Preferences > Java > Installed JREs > Execution Environments,选择JavaSE-1.6, 在右侧选择jdk.

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

posted @ 2017-06-01 16:18  InvApp  阅读(170)  评论(0编辑  收藏  举报