Install JDK 6 and Eclipse3.2 in RHEL5 and related configurations

Source: Internet
Author: User
1. JDK6 install in RHEL5 to http://java.sun.com download jdk-6-linux-i586.bin for jdk-6-linux-i586.bin authorization # chmod + xjdk-6-linux-i586.bin install jdk under/usr #. /jdk-6-linux-i586.bin in etc/profile. d. Create a New java. sh input exportJ

1. Install JDK 6 in RHEL 5

Download http://java.sun.com to jdk-6-linux-i586.bin

Authorize jdk-6-linux-i586.bin

# Chmod + x jdk-6-linux-i586.bin

Install jdk under/usr

#./Jdk-6-linux-i586.bin

In etc/profile. d, create java. sh and enter

Export JAVA_HOME =/usr/java/jdk 1.6.0

Export CLASSPATH =/usr/java/jdk1.6.0/jre/lib/rt. jar :.

Export PATH = $ PATH:/usr/java/jdk1.6.0/bin ($ PATH is the system environment variable)

Save java. sh

# Source/etc/profile

The following information can be found using the java-version command to verify that the installation is successful.

[Root @ localhost ~] # Java-version

Java version "1.6.0"

Java (TM) SE Runtime Environment (build 1.6.0-b105)

Java HotSpot (TM) Client VM (build 1.6.0-b105, mixed mode, sharing)

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.