Today we teach you how to mount a jdk in Redhat.
chmod 755 jdk-1.6.0 installation package. RPM Payment Permission
RPM-IVH jdk-1.6.0 installation package. RPM Installation RPM Package
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
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
Useradd Cattsoft
passwd Cattsoft
Su-cattsoft
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