Install Java OpenJDK 17

Learn how to install Java OpenJDK 17

Steps of installing Java OpenJDK 17

  1. Update apt package

    sudo apt update
  2. Install OpenJDK and JRE 17

    sudo apt-get install openjdk-17-jdk openjdk-17-jre -y
  3. Check Java Version

    java -version

Written by

KarChunT

At

Wed Mar 26 2025