CentOS 7 RPM Installation JDK

Source: Internet
Author: User

RPM Installation jdk1.8.0_1111, the query system comes with the jdkrpm-Qa|grep Java Query results are as follows:[[email protected] ~]# rpm-Qa|grep javajavapackages-Tools-3.4.1-5. El7.noarchjavamail-1.4.6-8. El7.noarchjava-1.7.0-OpenJDK-Headless-1.7.0.51-2.4.5.5. El7.x86_64tzdata-Java-2014b-1. El7.noarchpython-Javapackages-3.4.1-5. El7.noarchjava-1.7.0-OpenJDK-1.7.0.51-2.4.5.5. el7.x86_642, uninstall your own jdkrpm-E--nodeps Javapackages-tools-3.4.1-5.el7.noarch...   ...  ...3, install jdkrpm-IVH JDK-8u111-Linux-x64.rpm using the command rpm-Qa|grep JDK verifies that the installation is successful[[email protected] ~]# rpm-Qa|grep jdkjdk1.8.0_111-1.8.0_111-fcs.x86_64 is installed by default on/Usr/the path in Java is/Usr/Java/Jdk1.8.0_1114, configure environment variables vim/etc/Profile Add the following content Java_home=/Usr/Java/Jdk1.8.0_111Jre_home=/Usr/Java/Jdk1.8.0_111/Jrepath=$PATH: $JAVA _home/Bin: $JRE _home/Binclasspath=: $JAVA _home/Lib/Dt.jar: $JAVA _home/Lib/Tools.jar: $JRE _home/libexport java_home jre_home PATH CLASSPATH[[email protected] ~]# source/etc/ Profile5, verify that it is successful[[email protected] ~]# java-Versionjava Version "1.8.0_111"Java (TM) SE Runtime Environment (build1.8.0_111-B14) Java HotSpot (TM) --BitServer VM (Build25.111-B14, Mixed mode) is now installed successfully. 

CentOS 7 RPM Installation JDK

Related Article

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.