CentOS installation Sun JDK

Source: Internet
Author: User

1. Uninstall the original Open JDK

View Installed Packages

grep Java

If you already have an open JDK installed, you might be listing something like this:

tzdata-java-2015e-1. El6.noarchjava-1.6. 0-openjdk-1.6. 0.35-1.13. 7.1 . El6_6.x86_64java-1.7. 0-openjdk-1.7. 0.79-2.5. 5.4. el6.x86_64

Unloading

RPM-E java-1.6. 0-openjdk-1.6. 0.35-1.13. 7.1  -E java-1.7. 0-openjdk-1.7. 0.79-2.5. 5.4  -E tzdata-java-2015e-1. El6.noarch

2. Download the Sun JDK

Oracle website Download JDK7 http://www.oracle.com/technetwork/java/javase/downloads/java-archive-downloads-javase6-419409.htmlSelect the appropriate version according to the operating system of the machine, here we choose to download Jdk-6u45-linux-x64-rpm.bin3. Installation
chmod a+x jdk-6u45-linux-x64-rpm.bin. /jdk-6u45-linux-x64-rpm.bin

CentOS installation Sun JDK

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.