Linux installation Jdk8

Source: Internet
Author: User

1) Find Java

Yum-y List java*

650) this.width=650; "src=" Https://s1.51cto.com/wyfs02/M02/92/81/wKioL1kANx_Rpud2AAGXsaVG3Mg650.png "title=" Qq20170426135520.png "alt=" Wkiol1kanx_rpud2aagxsavg3mg650.png "/>

2) switch to root to install first

[email protected] desktop]$ Su-

Password:

[Email protected] ~]# yum install java-1.8.0-openjdk*-y

3) Check the installation status

[Email protected] ~]# java-version

OPENJDK Version "1.8.0_131"

OpenJDK Runtime Environment (build 1.8.0_131-B11)

OpenJDK Server VM (build 25.131-b11, Mixed mode)

4) Installation path

[Email protected] jvm]# CD/USR/LIB/JVM

[email protected] jvm]# LL

Total 4

Drwxr-xr-x. 3 root root 4096 Apr 06:59 java-1.8.0-openjdk-1.8.0.131-0.b11.el6_9.i386

lrwxrwxrwx. 1 root root (APR) 06:59 JRE-/etc/alternatives/jre

lrwxrwxrwx. 1 root root (APR) 06:59 jre-1.8.0-/etc/alternatives/jre_1.8.0

lrwxrwxrwx. 1 root root 06:59 jre-1.8.0-openjdk-1.8.0.131-0.b11.el6_9.i386-Java-1.8.0-openjdk-1.8.0.131-0.b11.el6_9 . i386/jre

lrwxrwxrwx. 1 root root 06:59 jre-1.8.0-openjdk.i386-Java-1.8.0-openjdk-1.8.0.131-0.b11.el6_9.i386/jre

lrwxrwxrwx. 1 root root 06:59 jre-openjdk-/etc/alternatives/jre_openjdk


Linux 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.