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:
- Installing Oracle JDK8
- 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