Jenkins image version v3.11.146 fails with error: java not found.

Solution Verified - Updated -


  • Jenkins image fails with java not found.
  • Unable to provision Jenkins image and show below error:
/usr/local/bin/ line 33: java: command not found

Migrating slave image configuration to current version tag ...
+ exec java -XX:+UseParallelGC -XX:MinHeapFreeRatio=5 -XX:MaxHeapFreeRatio=10 -XX:GCTimeRatio=4 -XX:AdaptiveSizePolicyWeight=90 -Xmx1024m -Dfile.encoding=UTF8 -Djavamelody.displayed-counters=log,error -Duser.home=/var/lib/jenkins -Djavamelody.application-name=JENKINS -jar /usr/lib/jenkins/jenkins.war
/usr/libexec/s2i/run: line 485: exec: java: not found


  • Openshift Container Platform 3
  • Image jenkins-2-rhel7 v3.11.146

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In