No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?(代码片

Posted zheh

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?(代码片相关的知识,希望对你有一定的参考价值。

--> yum search java | grep openjdk

--> yum install java-1.8.0-openjdk-headless.x86_64

--> yum install java-1.8.0-openjdk-devel.x86_64

--> update-alternatives --config java #pick java 1.8 and press 1

--> update-alternatives --config javac #pick java 1.8 and press 2

以上是关于No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?(代码片的主要内容,如果未能解决你的问题,请参考以下文章

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

Maven项目 报错No compiler is provided in this environment. Perhaps you are running on a JRE rather than

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

No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK(示

mavenmaven的web项目打包报错:No compiler is provided in this environment. Perhaps you are running on a JRE(代

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