How to Install jdk8 terminal command line in Ubuntu18.04
Today, I found that the process was clumsy, then it seems useful to install ppa repository find that the installation is simple, not so many tedious steps in the online Baidu how to install Ubuntu jdk. Let me begin:
Use the following command to add ppa library, press [enter] to continue
sudo add-apt-repository ppa:webupd8team/java
Enter the following command Next we update the look
sudo apt-get update
Now enter the following command to install the software on it, jump out the window if you press OK (yes) on it. We show here not installed a demonstration
sudo apt-get install oracle-java8-installer
Now we enter the following command to see if the installation was successful
java -version
Done, there is no easy ah!