0

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?

Moshiour
  • 633
  • 7
  • 20
chris
  • 324
  • 3
  • 17

1 Answers1

0

Probably you have only the Java Runtime Environment installed (JRE).

For running Jenkins, you need the Java Development Kit (JDK) which contains the javac binary for compiling Java code.

I am no expert in SuSe but I think you can install Open JDK using this link.

randrade86
  • 346
  • 1
  • 10