< pro-Test >centos7 install JDK1.8 via yum (actually OPENJDK)

Source: Internet
Author: User

Before installing, check if the system comes with OPEN-JDK

Command:

Rpm-qa |grep Java

Rpm-qa |grep JDK

Rpm-qa |grep GCJ


If no information is entered, no installation is indicated.

If the installation can use RPM-QA | grep java | Xargs rpm-e--nodeps Bulk unload All files with Java The key word for this command is Java

First retrieve the list containing Java

Yum List java*

Retrieving the list of 1.8

Yum List java-1.8*

Install all files for 1.8.0

Yum Install java-1.8.0-openjdk*-y



Use the command to check if the installation was successful

Java-version



To the end of this installation. One of the benefits of installing this is that you don't need to set the path, and it's set up automatically.

< pro-Test >centos7 install JDK1.8 via yum (actually OPENJDK)

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.