Can multiple major versions of java be installed on Red Hat Enterprise Linux?

Solution Verified - Updated -

Issue

  • Can I install multiple java major versions on Red Hat Enterprise Linux systems?
  • I want to install java-1.8.0-openjdk.x86_64 and java-11-openjdk.x86_64 packages on RHEL, is it possible?
  • If I install multiple versions of java i.e. java-1.8.0-openjdk.x86_64 and java-11-openjdk.x86_64 on RHEL, which would be taken as default?

Environment

  • Red Hat Enterprise Linux

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