• Home
  • Ubuntu 20.04
    • Upgrade Ubuntu
    • Install Java
    • Install Node.js
    • Install Docker
    • Install LAMP Stack
  • Tutorials
    • AWS
    • Shell Scripting
    • Docker
    • Git
    • MongoDB
  • Funny Tools
  • FeedBack
  • Submit Article
  • About Us
TecAdmin
Menu
  • Home
  • Ubuntu 20.04
    • Upgrade Ubuntu
    • Install Java
    • Install Node.js
    • Install Docker
    • Install LAMP Stack
  • Tutorials
    • AWS
    • Shell Scripting
    • Docker
    • Git
    • MongoDB
  • Funny Tools
  • FeedBack
  • Submit Article
  • About Us

How to Install Java 11 on CentOS 7/6

Written by Rahul, Updated on October 18, 2019

The Oracle Java 8 and Java 11 required subscription to download and install. So we use OpenJDK for this installation to run Java on CentOS 7/6 and RHEL 7/6 Linux system.. This article will help you to install Java 11 on CentOS 7/6, RHEL 7/6 Linux system.

Step 1 – Search Java Packages

The OpenJDK rpm packages are available under the AppStream repository. Use the following command to search available Java packages under configured yum repositories.

sudo dnf search openjdk

Step 2 – Install Java 11 on CentOS

Now, use one of the following commands to install the required Java version on your CentOS 7/6 and RHEL 7/6 Linux system. You can also install the multiple Java version on any system and use it as per your requirements.

sudo dnf install java-11-openjdk

Step 3 – Check Java Version

Let’s check the installed and current active Java version on your system using the following command:

java -version

openjdk version "11.0.4" 2019-07-16 LTS
OpenJDK Runtime Environment 18.9 (build 11.0.4+11-LTS)
OpenJDK 64-Bit Server VM 18.9 (build 11.0.4+11-LTS, mixed mode, sharing)

Share it!
Share on Facebook
Share on Twitter
Share on LinkedIn
Share on Reddit
Share on Tumblr
Share on Whatsapp
Rahul
Rahul
Connect on Facebook Connect on Twitter

I, Rahul Kumar am the founder and chief editor of TecAdmin.net. I am a Red Hat Certified Engineer (RHCE) and working as an IT professional since 2009..

9 Comments

  1. Avatar Alex Reply
    May 2, 2019 at 12:18 pm

    if i export environment variable to the /ect/environment in centos 7 vi,ls etc commands are not working and unable to enter into the system after reboot

  2. Avatar Gabriel Borsari Reply
    April 28, 2019 at 10:40 pm

    cool, with this tutorial I installed jdk to install eclipse, thank you

  3. Avatar Blithe Chiang Reply
    April 9, 2019 at 12:02 pm

    Thank you!

  4. Avatar meenal deshpande Reply
    October 18, 2018 at 6:42 am

    Java is a programming language which is used in lots of places in today’s world from android apps to commercial e-commerce website from financial applications to scientific tools, games, electronic trading devices and other desktop applications similar to IntelliJ, Eclipse, Netbeans from an open source library to J2ME apps.
    Thanks for sharing the article.

  5. Avatar Dominik Reply
    October 10, 2018 at 8:39 am

    Thank you!!!

  6. Avatar ktkim Reply
    March 6, 2018 at 8:59 am

    Thank you for useful contents

  7. Avatar mahendra Reply
    February 20, 2018 at 6:12 am

    hi bro it is not working and my system commands not working after installation of java

  8. Avatar mahendra Reply
    February 19, 2018 at 2:32 pm

    thanks, but it is not saving in proper way in pdf.

  9. Avatar Sameer Reply
    February 14, 2018 at 6:49 pm

    Thank you rahul. It was useful information.

Leave a Reply Cancel reply

Popular Posts

  • How To Install Python 3.9 on Debian 10
  • Download Ubuntu 20.04 LTS – DVD ISO Images
  • Linux Run Commands As Another User
  • How to Check PHP Version (Apache/Nginx/CLI)
  • How To Install and Configure GitLab on Ubuntu 20.04
  • How to Install PyCharm on Ubuntu 20.04
  • How to Check Ubuntu Version with Command or Script
  • How to Set all directories to 755 And all files to 644
© 2013-2021 Tecadmin.net. All Rights Reserved | Terms  | Privacy Policy