Linux Mint Installation Jdk8

Source: Internet
Author: User
Tags linux mint

Think of studying Java, may learn openjdk is a better way, so go to find OPENJDK. The installation guide for the Debian based system is:

sudo Install openjdk-8-jdk

However, my Linux Mint 17 was unable to install. The following questions were found after the search:

OpenJDK8 is included only in Ubuntu 14.10 and later versions of the source

While Linux Mint 17 is based on Ubuntu 14.04LTS, the next version of Linux Mint 18 needs to be based on Ubuntu 16.04 LTS (officially announced only based on the LTS version development)

To use JDK8 in Linux Mint 17, there are only two scenarios:

    1. Installing Oracle JDK8
    2. Using other methods to natively compile OPENJDK 8

If you are installing Oracle JDK8, there are two ways, one of course, to download the installation package on the official website. The other is to add a PPA repository:sudo add-apt-repository ppa:webupd8team/java. After adding an update to the warehouse, you can find the installation, the following:

sudo add-apt-repository ppa:webupd8team/sudo apt-sudo  Install oracle-java8-installersudoinstall Oracle-java8-set-default # Set Oracle JDK8 as the default

After you add the source, you can even find the installation option for JDK9, which is, of course, the current (20160324) or beta version. If you want to switch the JDK version, use the

sudo update-java-alternatives-s java-7-Oraclesudo update-java-alternatives-s java-8-oracle

If you are installing OPENJDK 8, you need to refer to the GitHub instructions:

Https://github.com/hgomez/obuildfactory/wiki/How-to-build-and-package-OpenJDK-8-on-Linux

Finally, good luck.

Linux Mint Installation Jdk8

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.