Linux installation JDK1.7

Source: Internet
Author: User

Linux installation JDK1.7

1. Preparation Materials

2. Create the/usr/local/java directory and put the JDK installation files in it

Mkdir/usr/local/java

3. Unzip the JDK to the current directory

TAR-ZXVF jdk-7u79-linux-x64.tar.gz

Get folder jdk1.7.0_79

4. Edit the configuration file, configure environment variables

Vim/etc/profile

Input I add JDK configuration information at the bottom of the file

# java pathjava_home=/usr/local/java/jdk1.7.0_79classpath= $JAVA _home/lib/path= $PATH: $JAVA _home/binexport PATH java _home CLASSPATH

Such as

Press ESC to exit Edit and enter : Wq Save to exit

5. Enter the command to make the configuration effective immediately

Source/etc/profile

6. Check the installation situation

Java-version

The displayed version information appears stating that the installation was successful

Linux installation JDK1.7

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.