RHEL8 system component requiring java does not recognize JDK17 install

Solution Unverified - Updated -

Issue

  • Running RHEL 8 with OpenJDK 17 installed, some packages such as log4j 2.17.1 fail to install because java-headless or java-11-headless is a dependency. Is there any way to get packages with this dependency to work with JDK 17 without installing an older version of JDK?

Environment

  • Red Hat Enterprise Linux (RHEL) 8
  • OpenJDK 17

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