Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I tried to install java 1.7 with rpm but got this error:

#rpm -i jdk-7-linux-x64.rpm. 
    package jdk-2000:1.7.0-fcs.x86_64 is already installed

If the package really was installed, then how come I still can't use java or javac command. Where is the package installed to?

Thanks

share|improve this question

migrated from stackoverflow.com Jan 25 '13 at 2:21

This question came from our site for professional and enthusiast programmers.

    
You need to specify the JAVA_HOME env variable. Try to find out where you install java, then export JAVA_HOME=<install path of java> –  Kit Ho Jan 25 '13 at 2:25
add comment

1 Answer

To answer the question: "Where is the package installed to", try having RPM list the files in the package:

$ rpm -ql jdk-2000:1.7.0-fcs.x86_64
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.