Install OpenJDK via terminal in Linux (Debian/Ubuntu/Mint)

  • Creator
    Topic
  • #11099 Reply
    Balvinder Singh
    Keymaster

    So, if you are here to check how to install Java OpenJDK via terminal, you are at right place. So lets check below.

    Steps for installation.

    1. Open Terminal
    2. Enter command
      $ sudo apt install default-jre
    3. check the installation
    4. Check the version
      $ java –version
      Output will be like this of above command
      openjdk 11.0.6 2020-01-14
      OpenJDK Runtime Environment (build 11.0.6+10-post-Ubuntu-1ubuntu118.04.1)
      OpenJDK 64-Bit Server VM (build 11.0.6+10-post-Ubuntu-1ubuntu118.04.1, mixed mode, sharing)

    So that is it, enjoy your java installation. Will add more things here, so keep checking back the forum.

Reply To: Install OpenJDK via terminal in Linux (Debian/Ubuntu/Mint)
Your information:




This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. AcceptRead More