简体   繁体   中英

Newbie Installation Issue: Oracle JDK7 on AWS/Tomcat

I'm trying to install JDK7 from the Oracle site on my nice new AWS server &

 sudo rpm -ivh ./jdk-7u7-linux-i586.rpm

produced

Unpacking JAR files...
        rt.jar...
Error: Could not open input file: /usr/java/jdk1.7.0_07/jre/lib/rt.pack
        jsse.jar...
Error: Could not open input file: /usr/java/jdk1.7.0_07/jre/lib/jsse.pack
...etc...

As a bonus issue, attempts to reinstall using a newly downloaded .rpm file produce:

package jdk-2000:1.7.0_07-fcs.i586 is already installed

Which is very frustrating because clearly it's not... really... I think. (I could be wrong) Thanks for any help you can offer...

Seems like the package could be corrupt. In a temporary directory, try this:

rpm2cpio /path/to/jdk-7u7-linux-i586.rpm | cpio -vid

and see if all files are successfully extracted. For your bonus issue, try adding --force to the rpm invocation?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM