Created
October 4, 2021 16:25
-
-
Save adityajoshi12/76a12bcd87bd61a977a3c24235175e72 to your computer and use it in GitHub Desktop.
java installation on ubuntu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt update | |
sudo apt install default-jre -y | |
sudo apt install default-jdk -y | |
sleep 2 | |
echo "export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64/bin/java" >> ~/.profile | |
sleep 2 | |
source ~/.profile |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment