Objective
Using PPA to install JDK in Ubuntu Server compared to the Oracle official website download package configuration environment Variables the benefit is that the installation is quick and easy, and can be apt-get updated.
Steps
Add the PPA source of Java 8, may prompt add-apt-repository not installed, so need to install python-software-properties and Software-properties-common, add PPA source need to press ENTER Confirm.
sudo apt-get install python-software-properties -ysudo apt-get install software-properties-common -ysudo add-apt-repository ppa:webupd8team/java
Update the system software source and install after the add is complete.
sudo apt-get updatesudo apt-get install oracle-java8-installer -y
Wait for the download installation to complete, check the Java version number, no problem can be.
java -version
Something
What's the use of installing this? In addition to the usual deployment of Tomcat or running Java programs, of course, to build their own Minecraft server. _ (: 3"∠) _
Ubuntu Server uses PPA to install Java (JDK) 8