Ubuntu Server uses PPA to install Java (JDK) 8

Source: Internet
Author: User
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.