首页 > 代码库 > 解决Perhaps you are running on a JRE rather than a JDK?问题

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

技术分享

 

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

 

 

 

 

 

 

 

 

 

 

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