No compiler is provided in this environment with jenkins
java, jenkins, maven
Solution
Go To Jenkins -> Manage Jenkins -> Global Tool Configuration -> JDK. Provide path to the JDK under JAVA_HOME field.
Problem
I'm getting this error when I try a Jenkins build on a maven project: ``` No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK? ``` The java and maven plugin are installed automatically, after several research, I couldn't find a solution! Does anyone have ever face this issue?