install openjdk 8 sdk on ubuntu
sudo apt-get install openjdk-8-jdk
install openjdk 8 sdk on ubuntu
sudo apt-get install openjdk-8-jdk
debian install java
# If you want java 11:
sudo apt install -y default-jre
# If you want other java versions:
sudo apt update
sudo apt install -y apt-transport-https ca-certificates wget dirmngr gnupg software-properties-common
wget -qO - https://adoptopenjdk.jfrog.io/adoptopenjdk/api/gpg/key/public | sudo apt-key add -
sudo add-apt-repository --yes https://adoptopenjdk.jfrog.io/adoptopenjdk/deb/
sudo apt update
sudo apt install -y adoptopenjdk-8-hotspot # Java 8
sudo apt install -y adoptopenjdk-16-hotspot # Java 16
# Switch java version
sudo update-alternatives --config java
install jdk in ubuntu
sudo add-apt-repository ppa:openjdk-r/ppa # only Ubuntu 17.4 and earlier
sudo apt update
sudo apt install openjdk-8-jdk
ubuntu install jdk 14
sudo add-apt-repository ppa:linuxuprising/java
sudo apt-get update
sudo apt-get install oracle-java14-installer oracle-java14-set-default
install jdk in ubuntu
$ Java -version $ sudo dpkg -i jdk-version.deb $ ls /user/lib/jvm $ sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk-16.0.1/bin/java 1 $ sudo update-alternatives --install /usr/bin/javac javac /usr/lib/jvm/jdk-16.0.1/bin/javac 1 $ java -version $ javac -version
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us