title: Perhaps you are running on a JRE rather than a JDK
body: <p>I'm running Jenkins on EC2 Suse Linux and have a Jenkins job which gives me following error:</p>
  
  <pre><code>[INFO] Compiling 1 source file to /var/lib/jenkins/workspace/sampleMulti_develop/target/classes
  [INFO] -------------------------------------------------------------
  [ERROR] COMPILATION ERROR : 
  [INFO] -------------------------------------------------------------
  [ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
  </code></pre>
  
  <p>I verified <code>JAVA_HOME</code> by which java shows: <code>/usr/bin/java</code>, gave same path in global tool configuration. Am I missing something here?</p>