Can I install multiple versions of java on a Red Hat Enterprise Linux system?

Solution Verified - Updated -

Issue

  • Can I install multiple Java major versions on a Red Hat Enterprise Linux system?
  • I want to install OpenJDK 1.7 and OpenJDK 1.8 on RHEL? Is it possible?
  • If I install multiple versions of Java i.e java-1.8.0-openjdk and java-1.7.0-openjdk on RHEL, which would be taken as default?

Environment

  • Red Hat Enterprise Linux 7
  • Red Hat Enterprise Linux 6
  • OpenJDK/Oracle/IBM Java

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