Linux under JDK tar.gz package installation method

Source: Internet
Author: User
JDK installation tar.gz is the version that can be used after decompression, here we will jdk-7u3-linux-i586.tar.gz decompression to/usr/local/. 1. Unzip to the current directory: $ TAR-ZXVF/OPT/SETUP/JDK-7-EA-BIN-B145-LINUX-I586-07_JUN_2011.TAR.GZ2, environment configuration ① $sudo Vi/etc/profile② Add #set Java environmentjava_home=/usr/local/jdk1.7.0classpath= to the end line: $JAVA _home/lib.tools.jarpath= $JAVA _home/bin: $PATHexport java_home CLASSPATH Path Save exit ③$ Source/etc/profile  make the changed configuration effective immediately ④$ java-version  View JDK version information, If the 1.7.0 proves successful ⑤ make the JDK use $ vi/etc/profile.d/java.sh in all users   to create a new java.sh execution file, fill in the JDK-related environment configuration information, such as: $ chmod 755/etc/ profile.d/java.sh   assigning permissions to java.sh

Linux under JDK tar.gz package installation method

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.