JDK Installation Documentation

Source: Internet
Author: User

Today we teach you how to mount a jdk in Redhat.

  1. chmod 755 jdk-1.6.0 installation package. RPM Payment Permission

  2. RPM-IVH jdk-1.6.0 installation package. RPM Installation RPM Package

  3. Vi. BASHRC Setting Environment variables

    Java_home=/usr/java/jdk1.7.0_11;

    Export Java_home

    Path= $JAVA _home/bin: $ANT _home/bin: $PATH:/usr/sbin;

    Export PATH

    Lang=zh_cn. GB18030

    Language=zh_cn. Gb18030:zh_cn. GB2312:zh_CN.uft8

    Export LANG

    Export LANGUAGE

  4. Java-version View Java version

    Rpm-qa | Frep GCJ

    Rpm-e--nodeps java-1.4.2-gcj-compat-1.4.2.0.40jpp.115 Delete Previous versions

  5. Useradd Cattsoft

    passwd Cattsoft

  6. Su-cattsoft

  7. Vi. BASHRC setting up a new environment variable

    Java_home=/usr/java/jdk1.7.0_11;

    Export Java_home

    Path= $JAVA _home/bin: $ANT _home/bin: $PATH:/usr/sbin;

    Export PATH

    Lang=zh_cn. GB18030

    Language=zh_cn. Gb18030:zh_cn. GB2312:zh_CN.uft8

    Export LANG

    Export LANGUAGE

The above is the installation step of the JDK, I hope to help everyone

JDK Installation Documentation

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.