Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.
# rpm -ivh jre-7u6-linux-x64.rpm
Preparing...                ########################################### [100%]
        package jre-1.7.0_06-fcs.x86_64 is already installed

But I also get:

# rpm -e jre-7u6-linux-x64
error: package jre-7u6-linux-x64 is not installed

but:

# java
-bash: java: command not found

Any ideas as to what is wrong?

EDIT:

echo $PATH
/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin

no java found

rpm -qi jre
Name        : jre                          Relocations: /usr/java
Version     : 1.7.0_06                          Vendor: Sun Microsystems, Inc.
Release     : fcs                           Build Date: Thu 09 Aug 2012 11:13:47 PM EDT
Install Date: Fri 02 Nov 2012 10:33:43 AM EDT      Build Host: jdk7-lin2-amd64
Group       : Development/Tools             Source RPM: jre-1.7.0_06-fcs.src.rpm
Size        : 94553730                         License: http://java.com/license
Signature   : (none)
Packager    : Java Software <jre-comments@java.sun.com>
URL         : URL_REF
Summary     : Java Platform Standard Edition Runtime Environment
Description :
The Java Platform Standard Edition Runtime Environment (JRE) contains
everything necessary to run applets and applications designed for the
Java platform. This includes the Java virtual machine, plus the Java
platform classes and supporting files.

The JRE is freely redistributable, per the terms of the included license.
share|improve this question
    
Where is the java binary and is it on your $PATH? –  Ladadadada Nov 2 '12 at 15:08
    
I can't seem to find the java binary. –  Tiffany Walker Nov 2 '12 at 15:10
    
Please run rpm -qi jre and show the output.. –  ewwhite Nov 2 '12 at 15:14
    
Posted above. Looks like it was isntalled under /usr/java/jre1.7.0_06/bin/java –  Tiffany Walker Nov 2 '12 at 15:17
2  
The confusion with the rpm -e command is that the version and release do not match the filename of the RPM (check the Release in the rpm -qi output). Try rpm -e jre-1.7.0_06-fcs if you want to delete it. Or just rpm -e jre. –  chutz Nov 2 '12 at 15:28
add comment

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.