Solution: file/usr/java/jdkxx/bin/java from install of jdkxx conf

Source: Internet
Author: User

Solution: file/usr/java/jdkxx/bin/java from install of jdkxx conf

This problem occurs when jdk is installed using the rpm package on centos7.
The problem is blind. I downloaded a 32-bit rpm package from the oracle official website. After the installation failed, I downloaded a 64-bit installation package and reported an error during the installation.
The reason is that the previously installed 32-bit package has not been uninstalled, and the installation conflict occurs. Just uninstall it. The method is as follows:
First, query the name of the jdk installed before. The full name must be used here. I will give it a pitfall:

> Rpm-qa | grep jdk> # Get jdk full name> jdk1.8.0 _ uninstall> # Uninstall a 32-bit jdk> rpm-e jdk1.8.0 _ 121-1.8.0_121-fcs.i586> # Install a 64-bit jdk> rpm- ivh jdk-8u121-linux-x64.rpm> # successful!

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.