Java Ubuntu Install

Submitted by code_admin on Fri, 07/20/2018 - 13:02

update-java-alternatives -l
sudo update-java-alternatives -s java-8-oracle

Alternatives:
sudo update-alternatives --install /usr/bin/javac javac /usr/lib/jvm/jdk1.8.0_20/bin/javac 120
sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk1.8.0_20/bin/java 120

sudo update-alternatives --config java
sudo update-alternatives --config javac