Installation and configuration of CentOS jdk1.6

Source: Internet
Author: User
  1. Download the appropriate version from the official website (click to go to Oracle), I downloaded the jdk-6u45-linux-x64.bin, my server environment is the centos5.10 version

  2. Copy to the directory where you want to install the JDK (my/usr/local/soft directory)

  3. Modified to executable: chmod 755 jdk-6u45-linux-x64.bin

  4. Perform installation:./Jdk-6u45-linux-x64.bin (Installation complete, you can see the./jdk1.6.0_45 directory,jdk-6u45-linux-x64.bin files can be deleted )

  5. Vi/etc/profile usually appends the last line with the # Hebad start ... # jdk Configexport java_home=/usr/local/soft/jdk1.6.0_45export classpath=.: $JAVA _home/jre/lib: $JAVA _home/lib: $JAVA _home/lib/tools.jarpath= $PATH: $JAVA _home/bin

6. Save Exit VI Editor, execute source/etc/profile command, perform java-version verification is successful


Installation and configuration of CentOS jdk1.6

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.