java 8 install ubuntu
sudo apt-get install openjdk-8-jdk
java 8 install ubuntu
sudo apt-get install openjdk-8-jdk
how to set java_home in ubuntu
#Update repo
sudo apt update
# Install java 8 from ubuntu repo
sudo apt install openjdk-8-jdk -y
#Set JAVA_HOME Path
ls /usr/lib/jvm/java-8-openjdk-amd64/
export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
echo $JAVA_HOME
#Add JAVA bin directory to the PATH variable
export PATH=$PATH:$JAVA_HOME/bin
echo $PATH
java -version
install java ubuntu
sudo apt install default-jdk
install java ubuntu
sudo apt install default-jre
install java ubuntu
#Install java in Linux
sudo apt install openjdk-11-jre-headless -y # version 11.0.10+9-0ubuntu1~20.04, or
sudo apt install default-jre -y # version 2:1.11-72
sudo apt install openjdk-8-jre-headless -y # version 8u282-b08-0ubuntu1~20.04
sudo apt install openjdk-13-jre-headless -y # version 13.0.4+8-1~20.04
sudo apt install openjdk-14-jre-headless -y # version 14.0.2+12-1~20.04
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