1. Check Before Installing
update-java-alternatives -l [return all java version installed on your computer]
2. Install:
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer
sudo apt-get install oracle-java8-installer
3. Check Version
update-java-alternatives -l [return all java version installed on your computer]
java -showversion [return java verison using currently]
java -version [return java version only]
4. Alter Version
sudo update-alternatives --config java
update-java-alternatives -l [return all java version installed on your computer]
2. Install:
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer
sudo apt-get install oracle-java8-installer
3. Check Version
update-java-alternatives -l [return all java version installed on your computer]
java -showversion [return java verison using currently]
java -version [return java version only]
4. Alter Version
sudo update-alternatives --config java
Comments
Post a Comment