java jdk java_home home ubuntu openjdk-8-jdk
export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
java jdk java_home home ubuntu openjdk-8-jdk
export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
install java in ubuntu 20.04
# Java in ubuntu
# first check if java is already installed or not using
java -version
# install openjdk (Java Development Kit)
sudo apt install default-jdk
# it will ask for confirmation...around 480 MB will be downloaded
# this will install both the latest jdk and jre of openjdk distribution
# check for java
java -version
#check for javac
javac -version
# If you only want to install jre and not jdk, just run
sudo apt install default-jre
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