sudo apt-get install openjdk-11-jre openjdk-11-jdk code example Example: sudo apt install openjdk-14-jdk $ apt search openjdk