When I am installing jdk 1.7 in Oracle Linux by using the following
rpm -ivh jdk-7u9-linux-i586.rpm
However I am getting the following errors, how can I resolve these errors and install jdk 1.7?
Any help is highly appreciable.
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 is oracle linux 5.5
1) I agree with Stephen C – this definitely sounds like “permissions”
2) “sudo” – you must definitely run the command as “root”
3) Do an
ls -ld /usr/java/jdk1.7.0_09/to make sure the directory exists.If it doesn’t, consider doing a “mkdir /usr/java” and re-running the command
4) This thread will probably be migrated to “superuser.com”, which is more for administrative questions
5) If you still don’t have a solution, please be sure to specify your Linux version.
==================================================================================
ADDENDUM:
The post gave the impression the JDK install failed; it sounded like none of the RPM was getting extracted.
Based on the subsequent information, it sounds like it’s merely a warning: