Installing OPENJDK 8

Source: Internet
Author: User

1.JDK 8 Example

(1.1) Debian, Ubuntu, etc. use the following installation commands:

sudo Install openjdk-8-jre

The PS:OPENJDK-8-JRE contains only the JRE, and if you need to develop a Java program, you need to download OPENJDK-8-JDK

(1.2) Fedora, Oracle Linux, Red Hat Enterprise Linux, etc. use the following commands:

su " Yum Install java-1.8.0-openjdk "

The PS:JAVA-1.8.0-OPENJDK contains only the JRE, and if you need to develop a Java program, you need to download Java-1.8.0-openjdk-devel

2. Versions of the JDK

Debian, Ubuntu and other versions of the JDK control
Jre Jdk
1.8 Openjdk-8-jre Openjdk-8-jdk
1.7 Openjdk-7-jre Openjdk-7-jdk
1.6 Openjdk-6-jre Openjdk-6-jdk

Fedora, Oracle Linux, Red Hat Enterprise Linux, and other versions of the JDK control
Jre Jdk
1.8 Java-1.8.0-openjdk Java-1.8.0-openjdk-devel
1.7 Java-1.7.0-openjdk Java-1.7.0-openjdk-devel
1.6 Java-1.6.0-openjdk Java-1.6.0-openjdk-devel

3. View the Java installation package

sudo grep Java

4. If you need to upgrade from 1.7 to 1.8, use the command

sudo rpm-e corresponds to OPENJDK package

After clearing the corresponding JDK, reinstall the new version of the JDK

5. Related information:

Official website: http://openjdk.java.net/install/

Installing OPENJDK 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.