Ubuntu 16.04/linux installs Oracle Java 8 tutorial

Source: Internet
Author: User
Tags mixed

Oracle Data installation package download

https://www.oracle.com/downloads/

Java 8 installation package download

Https://launchpad.net/~webupd8team/+archive/ubuntu/java

Check if Java has been installed

$ java-version
Java Version "1.7.0_95"
OpenJDK Runtime Environment (IcedTea 2.6.4) (7u95-2.6.4-0ubuntu0.15.10.1)
OpenJDK 64-bit Server VM (build 24.95-b01, Mixed mode)

1. Setup the PPA

$ sudo apt-add-repository Ppa:webupd8team/java
$ sudo apt-get update

2. Start installing Java 8 Installer

$ sudo apt-get install Oracle-java8-installer

$ java-version
Java Version "1.8.0_91"
Java (TM) SE Runtime Environment (build 1.8.0_91-b14)
Java HotSpot (TM) 64-bit Server VM (build 25.91-b14, Mixed mode)

3. Install Oracle Java

$ sudo apt-get install Oracle-java8-set-default

4. Installation of OPENJDK Package

$ sudo apt-get purge openjdk-*

Related Article

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.