Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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

You must log in to answer this question.