How to Install Java OpenJDK on JRE/JDK on CentOS/Red-Hat/Oracle Linux

June 3, 2015 | By the+gnu+linux+evangelist.

Linux CentOS Java OpenJDK Installation Guide

Hi! The Tutorial shows you Step-by-Step How to Install Oracle-Sun Java OpenJDK JRE/JDK on Red-Hat-Enterprise-Linux/Oracle-Enterprise-Linux/CentOS/Scientific 6/7 Desktop/Server.

And the OpenJDK (Open Java Development Kit) is a Free and Open Source Implementation of the Java Platform, Standard Edition (Java SE).

Oracle Java JDK/JRE Installation is based on the OpenJDK source code. In Addition, it contains Closed-Source Components.

How to Install Oracle JDK 21 on Ubuntu 24.04 – Step-by-step

How to Download and Install Oracle JDK on Linux Distros

  1. Open a Shell Terminal Emulator Window
    (Press “Enter” to Execute Commands)

    Java OpenJDK Quick Start for CentOS - Open Terminal

    In case first see: Terminal QuickStart Guide.

  2. Installing Java OpenJDK.

    • 10 OpenJDK JRE/JDK Installation.

      10 OpenJDK JRE/JDK Installation

    • 8 OpenJDK JRE/JDK Installation.

      • For JRE 8
        Minimal:

        sudo yum install java-1.8.0-openjdk-headless

        Complete:

        sudo yum install java-1.8.0-openjdk
      • For JDK 8
        sudo yum install java-1.8.0-openjdk-devel
    • 7 OpenJDK JRE/JDK Installation.

      • For JRE 7
        Minimal:

        sudo yum install java-1.7.0-openjdk-headless

        Complete:

        sudo yum install java-1.7.0-openjdk
      • For JDK 7
        sudo yum install java-1.7.0-openjdk-devel

QuickChic Theme • Powered by WordPress