解决Perhaps you are running on a JRE rather than a JDK?问题

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

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

翻译过来就是,大哥,环境里没给编译器呀,可能你是用jre在玩耍,我要jdk~~

 

问题原因:eclipse官网看了看,发现eclipse默认是运行在jre上的,
但是maven插件需要使用jdk,因此需要在eclipse修改Installed JRES
位置在-->【Window】-->【Prefrences】-->【Java】-->【Installed JREs】
详见下图。

 

重新运行一下,问题完美解决。。。。。。。。。。。。。。。

 

 

 

 

 

 

 

 

 

 

posted on 2017-06-15 15:12  尴尬而不失礼貌的微笑  阅读(2956)  评论(0编辑  收藏  举报