解决Perhaps you are running on a JRE rather than a JDK?问题
Posted 今天付出是为明天回报
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了解决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?问题的主要内容,如果未能解决你的问题,请参考以下文章
mvn命令异常:Perhaps you are running on a JRE rather than a JDK? 异常已解决
mvn命令异常:Perhaps you are running on a JRE rather than a JDK? 异常已解决
Maven项目出现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问题解决
No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK Mav
No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK