Shell/Bash: install openjdk 11 ubuntu Example


Shell/Bash Example: This is the "install openjdk 11 ubuntu" Example. compiled from many sources on the internet by

how to upgrade java 8 to 11 in ubuntu

sudo apt-get install openjdk-11-jdk

$ sudo update-alternatives --config java
There are 2 choices for the alternative java (providing /usr/bin/java).

Selection    Path                                            Priority   Status

* 0            /usr/lib/jvm/java-9-openjdk-amd64/bin/java       1500      auto mode
  1            /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java   1500      manual mode
  2            /usr/lib/jvm/java-9-openjdk-amd64/bin/java       1500      manual mode

install openjdk 11 ubuntu

sudo apt-get update && sudo apt-get upgrade
sudo apt-get install default-jdk

apt install java 11

sudo apt-get update

sudo apt-get install oracle-java11-installer-local

* Summary: This "install openjdk 11 ubuntu" Shell/Bash Example is compiled from the internet. If you have any questions, please leave a comment. Thank you!