OpenJDK container image missing /opt/rh/rh-java-common/enable

Solution Verified - Updated -

Issue

Docker build process fails due to missing /opt/rh/rh-java-common/enable for image based on openjdk18-openshift.

Step 8 : RUN bash /opt/rh/rh-java-common/enable
 ---> Running in 2427669e1dbf
bash: /opt/rh/rh-java-common/enable: No such file or directory
error: build error: The command '/bin/sh -c bash /opt/rh/rh-java-common/enable' returned a non-zero code: 127

Environment

  • Red Hat Enterprise Linux 7
  • Red Hat OpenShift Container Platform 3
  • Red Hat Software Collections

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content