Install the java environment and jdk in CentOs

Source: Internet
Author: User
1. download the latest JDK6http: // latest from the official website...
1. download the latest JDK 6 http://www.oracle.com/technetwork/java/javase/downloads/ Cent OS from the official website using jdk-6u31-linux-i586.bin 2. use ftp to download to CentOs. my directory is/usr/java/. Note that you should change the ftp transmission mode to the binary command: bin 3. install jdk. jdk-6u31-linux-i586.bin 4. add the following information to the end of the/etc/profile File: JAVA_HOME =/usr/java/jdk1.6.0 _ 31/JRE_HOME =/usr/java/jdk1.6.0 _ 31/jre/CLASSPATH =.: $ JAVA_HOME/lib/tools. jar PATH = $ JAVA_HOME/bin: $ JRE_HOME/bin: $ PATH 5. import confidence into the command: source/etc/profile 6. test java-version if The ftp transmission mode is not changed in The above 2, The following error occurs: The download file appears to be synchronized upted. please refer to the Troubleshooting section of the Installation Instructions on the download page for more information. please do not attempt to install this archive file. author: lvze1983

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.