I'm running Jenkins on EC2 Suse Linux and have a Jenkins job which gives me following error:
[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?
I verified JAVA_HOME
by which java shows: /usr/bin/java
, gave same path in global tool configuration. Am I missing something here?