Linux installation jdk1.6 prompts jdk-2000:1.6.0_41-fcs.x86_64 is already installed solution __linux

Source: Internet
Author: User

Installation of JDK is not installed, as follows:

[Root@localhost local]# RPM-IVH jdk-6u41-linux-amd64.rpm preparing ... ################################### ######## [100%]
Package jdk-2000:1.6.0_41-fcs.x86_64 is already installed
The reason is that the JDK installed in Linux, the new JDK is not installed, so you can only delete the original installed JDK

Workaround:

I used yum to install the JDK, now I want to uninstall with Yum

1, first implementation:

[Root@localhost local]# Yum list java*

2, view the installed JDK, and then perform the uninstall [root@localhost local]# yum Remove java-1.6.0-openjdk.x86_64
3, and then view the installed JDK RPM:
[Root@localhost local]# Rpm-qa|grep JDK
Java-1.6.0-openjdk-1.6.0.0-1.54.1.11.6.el6_3.x86_64

Jdk-1.6.0_41-fcs.x86_64

4, Delete:

[Root@localhost local]# rpm-e java-1.6.0-openjdk-1.6.0.0-1.54.1.11.6.el6_3.x86_64

[root@localhost local]# rpm-e jdk-1.6.0_41-fcs.x86_64
5, reinstall
[root@localhost local]# RPM-IVH-Jdk-6u41-linux -amd64.rpm 
6, after installation complete JDK location
[root@localhost local]#/usr/java/jdk1.6.0_41/

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.