Jdk installed at the terminal Ubuntu18.04

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

Avati

Enter the following command Next we update the look

 sudo apt-get update

Avati

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

avatoer

Now we enter the following command to see if the installation was successful

java -version

avatoer
Done, there is no easy ah!

Released four original articles · won praise 0 · Views 1527

Guess you like

Origin blog.csdn.net/tonycarson/article/details/86695056