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.comHelp installing Java 20 Ubuntu 22
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.comInstalling 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.comInstall NetExtender
Videos
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
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.
sudo wget https://download.oracle.com/java/20.0.2/latest/jdk-20.0.2_linux-x64_bin.deb
sudo apt-get -qqy install ./jdk-20.0.2_linux-x64_bin.deb
sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk-20.0.2/bin/java
error message:
alternatives --install needs link name path priority