Install JDK under red head Linux

Source: Internet
Author: User

1. Assign Read and Write permissions (assuming my jdk-6u24-linux-i586.bin is in my/app root directory):

chmod 755 jdk-6u24-linux-i586.bin

2, run Jdk-6u24-linux-i586.bin will automatically decompression

./jdk-6u24-linux-i586.bin

3. Life name (optional)

MV Jdk-6u24-linux JDK

4. Modify Environment variables

Vi/etc/profile

At the end add the following (note: Here is the app root directory):

Export JAVA_HOME=/APP/JDK

export classpath=.: $JAVA _home/lib: $JAVA _home/jre/lib

export path=.: $JAVA _home/bin: $JAVA _home/jre/bin: $PATH: $CLASSPATH

5. Refresh environment variable takes effect

Source/etc/profile

6. Check if the JDK is installed successfully

java-version appears as follows (configuration succeeded):

java Version "1.6.0_24"

Java (TM) SE Runtime Environment (build 1.6.0_24-b07)

Java HotSpot (TM) Client VM (build 19.1-b02, Mixed mode)

This article is from the "Javaweb" blog, make sure to keep this source http://472053211.blog.51cto.com/3692116/1577109

Install JDK under red head Linux

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.