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.

I am trying to reinstall java on a CentOS box with the following command (Is this the best command?):

rpm -i --force /root/jdk-6u11-linux-i586.rpm

But I get errors when doing this:

Error: Could not open input file: /usr/java/jdk1.6.0_11/jre/lib/rt.pack
        jsse.jar...
Error: Could not open input file: /usr/java/jdk1.6.0_11/jre/lib/jsse.pack
        charsets.jar...
etc.....

Anyone know why this is?

share|improve this question
    
Removed all rpm -qa java packages and then reinstalled using the .bin file, seems okay now –  Kyle Brandt Oct 22 '09 at 15:52
    
I remember that installing an RPM that was already installed threw an error if you used -i, yet you could happily upgrade a package that wasn't already installed with -U. Go figure. –  David Pashley Oct 22 '09 at 18:38
add comment

3 Answers

It's nice that RPM gives you a reason for the problem.

Run

# strace -e file -f rpm -i --force /root/jdk-6u11-linux-i586.rpm

and see what the error is.

(Isn't the recommended flags -Uvh for installing packages with RPM?)

share|improve this answer
add comment

afaik u means upgrade.

-hiv was my favorite, scnr :)

share|improve this answer
add comment

Removed all rpm -qa java packages and then reinstalled using the .bin file, seems okay now.

share|improve this answer
add comment

Your Answer

 
discard

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.