Errors when installing jdk 1.7 on Linux

When I install jdk 1.7 on Oracle Linux using the following

rpm -ivh jdk-7u9-linux-i586.rpm

However, I get the following errors: how can I fix these errors and install jdk 1.7?

Any help is very noticeable.

thanks

rpm -ivh /tmp/mnt/jdk-7u9-linux-i586.rpm Preparing... ########################################### [100%] 1:jdk ########################################### [100%] Unpacking JAR files... rt.jar... Error: Could not open input file: /usr/java/jdk1.7.0_09/jre/lib/rt.pack jsse.jar... Error: Could not open input file: /usr/java/jdk1.7.0_09/jre/lib/jsse.pack charsets.jar... Error: Could not open input file: /usr/java/jdk1.7.0_09/jre/lib/charsets.pack tools.jar... Error: Could not open input file: /usr/java/jdk1.7.0_09/lib/tools.pack localedata.jar... Error: Could not open input file: /usr/java/jdk1.7.0_09/jre/lib/ext/localedata.pack plugin.jar... Error: Could not open input file: /usr/java/jdk1.7.0_09/jre/lib/plugin.pack javaws.jar... Error: Could not open input file: /usr/java/jdk1.7.0_09/jre/lib/javaws.pack deploy.jar... Error: Could not open input file: /usr/java/jdk1.7.0_09/jre/lib/deploy.pack 

My Linux version of oracle linux 5.5

+7
source share
2 answers

1) I agree with Stephen C - it definitely sounds like “permissions”

2) "sudo" - you must run the command as "root"

3) Do ls -ld /usr/java/jdk1.7.0_09/ to make sure the directory exists.

If this is not the case, consider running "mkdir / usr / java" and reissue the command

4) This stream is likely to be ported to "superuser.com", which is more for administrative matters.

5) If you still do not have a solution, be sure to indicate your version of Linux.

==================================================== ==================================

ADDITION:

The message gave the impression that the JDK installation failed; it sounded like none of the RPMs got the extraction.

Based on the following information, this sounds just like a warning:

In version 7u9, the following error messages are displayed associated with the file extension that is used in Java application tools using Java Web Start. This does not affect the functionality of the JRE installed on your system, executed in this binary format (Revolutions per minute).

Your installation of Sun jdk-7u7-linux-x64.rpm was successful. Error displayed messages are normal. They exist because these files are not in the package. I get them when installing Sun jre rpm packages. Just ignore these error messages.

+5
source

You probably need to configure the rpm command as root.

Another possibility is that SELinux gets in the way. Do you have to force push SELinux with string policy?

+2
source

All Articles