Facebook Twitter Instagram
    TecAdmin
    • Home
    • FeedBack
    • Submit Article
    • About Us
    Facebook Twitter Instagram
    TecAdmin
    You are at:Home»Programming»JAVA»How to Install Java 11 on CentOS 7/6

    How to Install Java 11 on CentOS 7/6

    By RahulOctober 18, 20191 Min Read

    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.

    Advertisement

    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)
    

    Java Java 11 Java 11 LTS java-install
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email WhatsApp

    Related Posts

    How to Set JAVA_HOME environment variable on macOS

    How to Set JAVA_HOME environment variable on macOS

    What is the Access Modifiers in Java

    What are the Access Modifiers in Java

    Installing Java on Ubuntu 22.04

    How to Install JAVA on Ubuntu 22.04

    View 9 Comments

    9 Comments

    1. Alex on May 2, 2019 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

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

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

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

      Thank you!

      Reply
    4. meenal deshpande on October 18, 2018 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.

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

      Thank you!!!

      Reply
    6. ktkim on March 6, 2018 8:59 am

      Thank you for useful contents

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

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

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

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

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

      Thank you rahul. It was useful information.

      Reply

    Leave A Reply Cancel Reply

    Advertisement
    Recent Posts
    • How to Split Large Archives in Linux using the Command Line
    • System.out.println() Method in Java: A Beginner’s Guide
    • Split Command in Linux With Examples (Split Large Files)
    • Test Your Internet Speed from the Linux Terminal
    • 11 Practical Example of cat Command in Linux
    Facebook Twitter Instagram Pinterest
    © 2023 Tecadmin.net. All Rights Reserved | Terms  | Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.