码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2017-06-15 15:30:52      阅读:253      评论:0      收藏:0      [点我收藏+]

标签:microsoft   官网   原因   clip   running   技术分享   win   sof   mave   

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】
详见下图。

技术分享

 

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

 

 

 

 

 

 

 

 

 

 

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

标签:microsoft   官网   原因   clip   running   技术分享   win   sof   mave   

原文地址:http://www.cnblogs.com/xiaohouzai/p/7017929.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!