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

Lahiru Gamage picture Lahiru Gamage · Jan 3, 2018 · Viewed 8.2k times · Source

I tried mvn clean install in Intellij. But it raise this error. image 1

mvn -version command works fine in the terminal of intellij.

Answer

Lahiru Gamage picture Lahiru Gamage · Jan 3, 2018

It worked when I set JAVA_HOME and use command prompt for executing mvn clean install. The problem with the IntelliJ is we can't add bin path of the JDK. Is there a way to solve this? Image