Install Java on RHEL6

Source: Internet
Author: User

Install Java on RHEL6

Install Java on RHEL6

Uninstall old Java versions
# Java-version
# Rpm-qa | grep java
# Rpm-e -- nodeps java-1.5.0-gcj-1.5.0.0-29.1.el6.x86_64


Bin Installation
# Chmod a + x jdk-6u31-linux-x64.bin
# Cd/opt/
# Mkdir java
# Cd java
#/Home/bati/Downloads/jdk-6u31-linux-x64.bin

Java (TM) SE Development Kit 6 successfully installed.
......
Press Enter to continue .....
Done.

Install it to the directory where the bin file is executed.


Rpm Installation
# Chmod a + x jdk-6u31-linux-x64-rpm.bin
#./Jdk-6u31-linux-x64-rpm.bin

Installed in/usr/java


Configure Environment Variables
# Vim/etc/profile

Add the following content
Export JAVA_HOME =/usr/java/jdk1.6.0 _ 31
Export PATH = $ JAVA_HOME/bin: $ PATH


Effective immediately:
# Source/etc/profile
# Java-version

Install JDK 7 In Ubuntu (with Clojure download)

Install JDK 12.04 in Ubuntu

Install Oracle JDK 14.04 on Ubuntu 1.8 LTS

CentOS6.3 install JDK and environment Configuration

Install JDK 8 on Ubuntu 14.04

Install JDK graph analysis in Ubuntu

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.