Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
[root@AY1312280620257702e0Z java]# cd /usr/bin/
[root@AY1312280620257702e0Z bin]# ls |grep java
java
javac
javadoc
javaws
[root@AY1312280620257702e0Z bin]# rm -rf java
[root@AY1312280620257702e0Z bin]# rm -rf javac
[root@AY1312280620257702e0Z bin]# rm -rf javaws
[root@AY1312280620257702e0Z bin]#
[root@AY1312280620257702e0Z bin]# ls |grep java
javadoc
[root@AY1312280620257702e0Z bin]# rm -rf javadoc
[root@AY1312280620257702e0Z bin]# ls |grep java
[root@AY1312280620257702e0Z bin]#
[root@AY1312280620257702e0Z software]# rpm -i --force jdk-7u25-linux-x64.rpm
Unpacking JAR files...
rt.jar...
Error: Could not open input file: /usr/java/jdk1.7.0_25/jre/lib/rt.pack
Error: unpack could not create JAR file:
/usr/java/jdk1.7.0_25/jre/lib/rt.jar
Please refer to the Troubleshooting section of the Installation Instructions
on the download page.
jsse.jar...
Error: Could not open input file: /usr/java/jdk1.7.0_25/jre/lib/jsse.pack
Error: unpack could not create JAR file:
/usr/java/jdk1.7.0_25/jre/lib/jsse.jar
Please refer to the Troubleshooting section of the Installation Instructions
on the download page.
charsets.jar...
Error: Could not open input file: /usr/java/jdk1.7.0_25/jre/lib/charsets.pack
Error: unpack could not create JAR file:
/usr/java/jdk1.7.0_25/jre/lib/charsets.jar
Please refer to the Troubleshooting section of the Installation Instructions
on the download page.
tools.jar...
Error: Could not open input file: /usr/java/jdk1.7.0_25/lib/tools.pack
Error: unpack could not create JAR file:
/usr/java/jdk1.7.0_25/lib/tools.jar
Please refer to the Troubleshooting section of the Installation Instructions
on the download page.
localedata.jar...
Error: Could not open input file: /usr/java/jdk1.7.0_25/jre/lib/ext/localedata.pack
Error: unpack could not create JAR file:
/usr/java/jdk1.7.0_25/jre/lib/ext/localedata.jar
Please refer to the Troubleshooting section of the Installation Instructions
on the download page.
[root@AY1312280620257702e0Z software]#
java tarballs are quite easy to install, but you have to set all environment variables, like
export JAVA_HOME=/usr/lib/java <-- change it where you put java
export MANPATH="${MANPATH}:${JAVA_HOME}/man"
export PATH="${PATH}:${JAVA_HOME}/bin:${JAVA_HOME}/jre/bin"
or similar; i'm not into rpm since RH5, i really don't know if it fails to extract files because they yet exists or because he can't find path
glad to be helping, i even thought you were running out of disk space, it's still a mystery to me why rpm refused to unpack files; btw, why are you using old java?
I have tried one time previouly to install JDK serveral months ago, but still fail. I am a little scared to use JDK RPM packet.
I am trying to install a cluster to setup hadoop, which is the reason why I want to install JDK. The JDK version is recommended by this link http://www.cloudera.com/content/clou...v_topic_3.html which is provided by cloudera company.
Last edited by Robert Chiu; 01-24-2014 at 09:26 AM.
java rpm are identical to tarballs, it copy and set env variables for you, even slackware packages do this, there is no compile or linking, the difference between jre and jdk is that jdk ships the java compiler, while jre don't, just runtime libraries; there are other jdk available, but they're more tricky, i won't recommend as a starting point
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.