The license agreement comes from the Oracle Java 14 package, not the Ubuntu Java 14 package. Use the Tab and Enter keys to accept the license in the Oracle license agreement window that pops up.


There is no license agreement for the Ubuntu version of openjdk-14-jdk. Remove the non-default software sources from your /etc/apt/sources.list file with How do I restore the default repositories? and run sudo apt update to refresh the list of available software.

Now you are ready to install Java. To manually download and install openjdk-14-jdk alongside openjdk-8-jdk and openjdk-11-jdk in Ubuntu 20.04 open the terminal and type:

sudo apt update
sudo apt install openjdk-8-jdk openjdk-11-jdk
cd ~/Desktop/
wget http://mirrors.kernel.org/ubuntu/pool/universe/o/openjdk-14/openjdk-14-jre-headless_14.0.2+12-1_amd64.deb http://mirrors.kernel.org/ubuntu/pool/universe/o/openjdk-14/openjdk-14-jre_14.0.2+12-1_amd64.deb http://mirrors.kernel.org/ubuntu/pool/universe/o/openjdk-14/openjdk-14-jdk-headless_14.0.2+12-1_amd64.deb http://mirrors.kernel.org/ubuntu/pool/universe/o/openjdk-14/openjdk-14-jdk_14.0.2+12-1_amd64.deb
sudo apt install ./openjdk-14-jre-headless_14.0.2+12-1_amd64.deb ./openjdk-14-jre_14.0.2+12-1_amd64.deb ./openjdk-14-jdk-headless_14.0.2+12-1_amd64.deb ./openjdk-14-jdk_14.0.2+12-1_amd64.deb
Answer from karel on askubuntu.com
🌐
DigitalOcean
digitalocean.com › community › tutorials › how-to-install-java-with-apt-on-ubuntu-20-04
How To Install Java with Apt on Ubuntu | DigitalOcean
February 5, 2026 - OutputCommand 'java' not found, but can be installed with: sudo apt install default-jre # version 2:1.17-75, or sudo apt install openjdk-17-jre-headless # version 17.0.17+10-1~24.04 sudo apt install openjdk-21-jre-headless # version 21.0.9+10-1~24.04 sudo apt install openjdk-11-jre-headless # version 11.0.29+7-1ubuntu1~24.04 sudo apt install openjdk-25-jre-headless # version 25.0.1+8-1~24.04 sudo apt install openjdk-8-jre-headless # version 8u472-ga-1~24.04 sudo apt install openjdk-19-jre-headless # version 19.0.2+7-4 sudo apt install openjdk-20-jre-headless # version 20.0.2+9-1 sudo apt insta
🌐
Ubuntu
ubuntu.com › tutorials › install-jre
Install the Java Runtime Environment | Ubuntu
openjdk version "11.0.11" 2021-04-20 OpenJDK Runtime Environment (build 11.0.11+9-Ubuntu-0ubuntu2) OpenJDK 64-Bit Server VM (build 11.0.11+9-Ubuntu-0ubuntu2, mixed mode) (Although the output may change in the future as new Java versions are promoted to LTS status, or the current LTS version receives updates.) And that’s it! In the next step we’ll install ...
Discussions

Help installing Java 20 Ubuntu 22
You're missing the priority argument. Try sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk-20.0.2/bin/java 2002 I based this on openjdk-17-jre's postinst script, which sets the priority to 1711. The provider with the highest priority wins by default, but you can always sudo update-alternatives --config /usr/bin/java and choose whichever you want. More on reddit.com
🌐 r/Ubuntu
1
2
December 7, 2023
Getting Java error trying to run Server 1.17 on Ubuntu 20.04
  • Looking for instant support instead? Have a urgent question or just want to talk to the community without waiting? Join the r/minecraftserver Official Discord server https://discord.gg/bcbUzMYbsh

  • Get our most popular Ryzen 3000 and 5000 powered Minecraft Hosting plan packed with 8GB of RAM for only $15 a month! Find out more at https://mcserverhosting.net/

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

More on reddit.com
🌐 r/MinecraftServer
7
5
June 9, 2021
Installing Maltego in Ubuntu 18.04 but it won't boot

run it from the terminal and see if any errors pop up

More on reddit.com
🌐 r/linux4noobs
2
2
July 8, 2018
Install NetExtender
NetExtender needs Java 8. That's odd the Linux client would have a dependency like that. The Windows NetExtender is stand-alone AFAICT. More on reddit.com
🌐 r/sysadmin
3
4
January 16, 2020
🌐
Linuxize
linuxize.com › home › java › how to install java on ubuntu 20.04
How to Install Java on Ubuntu 20.04 | Linuxize
April 25, 2020 - In this guide, we will describe how to install Java on Ubuntu 20.04. The default Ubuntu 20.04 repositories include two OpenJDK packages, Java Runtime …
🌐
VITUX
vitux.com › how-to-install-java-on-ubuntu-20-04
How to install Java (JDK and JRE) on Ubuntu 20.04 LTS – VITUX
This article shows how to install Java 8 and Java 11 JDK and JRE on Ubuntu 20.04 using the terminal and how to switch between these two versions.
Top answer
1 of 2
2

The license agreement comes from the Oracle Java 14 package, not the Ubuntu Java 14 package. Use the Tab and Enter keys to accept the license in the Oracle license agreement window that pops up.


There is no license agreement for the Ubuntu version of openjdk-14-jdk. Remove the non-default software sources from your /etc/apt/sources.list file with How do I restore the default repositories? and run sudo apt update to refresh the list of available software.

Now you are ready to install Java. To manually download and install openjdk-14-jdk alongside openjdk-8-jdk and openjdk-11-jdk in Ubuntu 20.04 open the terminal and type:

sudo apt update
sudo apt install openjdk-8-jdk openjdk-11-jdk
cd ~/Desktop/
wget http://mirrors.kernel.org/ubuntu/pool/universe/o/openjdk-14/openjdk-14-jre-headless_14.0.2+12-1_amd64.deb http://mirrors.kernel.org/ubuntu/pool/universe/o/openjdk-14/openjdk-14-jre_14.0.2+12-1_amd64.deb http://mirrors.kernel.org/ubuntu/pool/universe/o/openjdk-14/openjdk-14-jdk-headless_14.0.2+12-1_amd64.deb http://mirrors.kernel.org/ubuntu/pool/universe/o/openjdk-14/openjdk-14-jdk_14.0.2+12-1_amd64.deb
sudo apt install ./openjdk-14-jre-headless_14.0.2+12-1_amd64.deb ./openjdk-14-jre_14.0.2+12-1_amd64.deb ./openjdk-14-jdk-headless_14.0.2+12-1_amd64.deb ./openjdk-14-jdk_14.0.2+12-1_amd64.deb
2 of 2
1

Another approach is sdkman which gives you more flexibility down the line.

Directions are quite simple:

curl -s "https://get.sdkman.io" | bash 

from there sdk ls will show you available packages and sdk install java will install Java. Of course, there many options, those are just defaults to point you in another direction than.

I believe it's possible to use Oracle binaries with sdkman but would have to delve deeper into their documentation. The above options use open source repositories, so the licensing is very easy to deal with.

🌐
LinuxConfig
linuxconfig.org › home › how to install java on ubuntu 20.04 lts focal fossa linux
How to install Java on Ubuntu 20.04 LTS Focal Fossa Linux
September 20, 2025 - In this article we will discuss a procedure on how to install OpenJDK java on Ubuntu 20.04 LTS focal fossa Linux.
🌐
TecMint
tecmint.com › home › linux distros › ubuntu › how to install java on ubuntu 24.04, ubuntu 22.04, and ubuntu 20.04
How to Install Java (OpenJDK) on Ubuntu 24.04
June 4, 2024 - This tutorial will show you how to install Java on Ubuntu 24.04, Ubuntu 22.04, and Ubuntu 20.04 from the Ubuntu repository and the official Oracle package.
Find elsewhere
🌐
RoseHosting
rosehosting.com › home › how to install java on ubuntu 20.04
How to Install Java on Ubuntu 20.04 | RoseHosting
June 3, 2022 - In this tutorial, you will learn how to install Java 8, Java 11, and Oracle Java 15 on Ubuntu 20.04 server.
🌐
Contabo
contabo.com › home › how to install java on ubuntu 18.04, 20.04 & 22.04 using apt-get
How To Install Java on Ubuntu 18.04, 20.04 & 22.04 using Apt-Get
August 11, 2023 - In this comprehensive step-by-step guide you will learn how to install different versions of Java on your Ubuntu server using Apt-Get.
🌐
nixCraft
cyberciti.biz › nixcraft › howto › ubuntu linux › how to install java on ubuntu 20.04 lts linux
How to Install Java on Ubuntu 20.04 LTS Linux - nixCraft
May 5, 2021 - The headless version is for server users where you don’t need desktop GUI components of JAVA. Update the repo and then install the OpenJDK version 14 using the apt command: $ sudo apt update $ sudo apt upgrade $ sudo apt install openjdk-14-jdk ## for servers try headless version ## $ sudo apt install openjdk-14-jdk-headless ... openjdk version "14.0.1" 2020-04-14 OpenJDK Runtime Environment (build 14.0.1+7-Ubuntu-1ubuntu1) OpenJDK 64-Bit Server VM (build 14.0.1+7-Ubuntu-1ubuntu1, mixed mode, sharing)
🌐
TheServerSide
theserverside.com › blog › Coffee-Talk-Java-News-Stories-and-Opinions › How-do-I-install-Java-on-Ubuntu
How to install Java 21 on Ubuntu
Here's the easiest way to install Java on Ubuntu with apt. Follow these steps and you'll get the JDK installed in no time, and be ready to use your Java on Ubuntu setup right away.
🌐
OneUptime
oneuptime.com › home › blog › how to install java (openjdk) on ubuntu
How to Install Java (OpenJDK) on Ubuntu
January 15, 2026 - JRE (Java Runtime Environment): Only runtime, for running Java applications · # Install only the JRE (smaller, no development tools) sudo apt install openjdk-21-jre -y · Ubuntu's update-alternatives system manages multiple Java installations.
🌐
TecAdmin
tecadmin.net › install-java-ubuntu-20-04
How to Install Java on Ubuntu 20.04 – TecAdmin
April 26, 2025 - This tutorial helps you to install Java on Ubuntu 20.04. Learn how to install OpenJDK 11 and OpenJDK 8 or Oracle Java 14 on your Ubuntu 20.04 LTS system.
🌐
ComputingForGeeks
computingforgeeks.com › home › install java 21 (openjdk 21) on ubuntu 24.04|22.04|20.04
Install Java 21 (OpenJDK 21) on Ubuntu 24.04|22.04|20.04
March 21, 2026 - The easiest and quickest way is installation OpenJDK 21 on Ubuntu 24.04|22.04|20.04 from OS upstream repositories. sudo apt update -y sudo apt install -y openjdk-21-jdk · For JRE run the following commands to install.
🌐
UbuntuHandbook
ubuntuhandbook.org › home › howtos › install oracle java jdk 21, 25, or 26 in ubuntu 24.04 | 22.04 | 20.04
Install Oracle Java JDK 21, 25, or 26 in Ubuntu 24.04 | 22.04 | 20.04 | UbuntuHandbook
Install Oracle Java JDK 21, 25, or 26 in Ubuntu 24.04 | 22.04 | 20.04 · Last updated: March 22, 2026 · This simple tutorial shows how to install the latest Oracle Java (JDK 21, 25 LTS or JDK 26) in Ubuntu Linux via the official binary package. There used to be unofficial Ubuntu PPA to automate the process of installing Java JDK and setup the environment, however, discontinued.
🌐
RoseHosting
rosehosting.com › home › how to install java 17 lts on ubuntu 20.04
How to Install Java 17 LTS on Ubuntu 20.04 | RoseHosting
October 5, 2022 - This is the easiest way to install the JDK using the apt package manager: ... openjdk 17.0.2 2022-01-18 OpenJDK Runtime Environment (build 17.0.2+8-Ubuntu-120.04) OpenJDK 64-Bit Server VM (build 17.0.2+8-Ubuntu-120.04, mixed mode, sharing · By default, Oracle Java is not available in the Ubuntu 20.04 default repository.
🌐
FOSS TechNix
fosstechnix.com › home › how to install oracle java 8 on ubuntu 20.04 lts
How to Install Oracle JAVA 8 on Ubuntu 20.04 LTS
August 31, 2021 - sudo apt-get install libc6-i386 Conclusion: In this article, We have covered download Oracle Java 8 from official site, install oracle java 8 on Ubuntu 20.04 LTS using command line, configured JAVA_HOME and JRE_HOME, verified installed version.
🌐
freeCodeCamp
freecodecamp.org › news › how-to-install-java-in-ubuntu
How to Install Java in Ubuntu – JDK Linux Tutorial
August 11, 2024 - You can do that using the sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk-version/bin/java 1 command. Since I'm using the "JDK - 20" version, my command would be sudo update-alternatives --install /usr/bin/java java ...
🌐
DigitalOcean
digitalocean.com › community › tutorials › how-to-install-java-with-apt-on-ubuntu-22-04
How to Install Java with Apt on Ubuntu (JRE & JDK) | DigitalOcean
February 2, 2026 - Learn how to install Java (JRE & JDK) on Ubuntu using apt. Step-by-step guide to setting up Java, verifying installation, and managing multiple versions.