Maven编译失败,提示No compiler is provided in this enviroment. Perhaps you are running on a JRE rathen a JD

Posted AlphaJunS

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Maven编译失败,提示No compiler is provided in this enviroment. Perhaps you are running on a JRE rathen a JD相关的知识,希望对你有一定的参考价值。

用maven对项目进行构建时,提示No compiler is provided in this enviroment. Perhaps you are running on a JRE rathen a JDK ?错误,如下图

出现此错,需要将JRE home指定为jdk(jdk目录本身自带jre)安装目录,然后对项目运行环境进行重新配置运行

 

在需要运行的项目上右键进行运行环境配置

更为详细的步骤可以参考如下博客:https://blog.csdn.net/lslk9898/article/details/73836745

 

以上是关于Maven编译失败,提示No compiler is provided in this enviroment. Perhaps you are running on a JRE rathen a JD的主要内容,如果未能解决你的问题,请参考以下文章

Maven No sources to compile

Maven 构建失败 - 编译器插件

maven compile 有时会失败有时会成功

make menuconfig失败,提示:fatal error curses.h No such file or directory

关于Maven项目build时出现No compiler is provided in this environment的处理(转)

关于Maven项目build时出现No compiler is provided in this environment的处理