Hello people,
I downloaded the JDK from the Oracle website. jdk-7u7-linux-x64.rpm file. It's in my download directory. I tried to install it this way and have a look at the error I got. I googled for the same but couldn't find any convincing solutions.
When I retry the same thing again, this is what I get
Apparently when I typed java -versions, this is what came up.
Please help me install this, only then I can proceed with Eclipse too (though I feel I will have a tough time installing Eclipse too, after all I am a noob :( )
Thanks a ton :)
I downloaded the JDK from the Oracle website. jdk-7u7-linux-x64.rpm file. It's in my download directory. I tried to install it this way and have a look at the error I got. I googled for the same but couldn't find any convincing solutions.
Code:
[root@Ankur-Fedora ~]# rpm -Uvh /home/ankur218/Downloads/jdk-7u7-linux-x64.rpm
Preparing... ########################################### [100%]
1:jdk ########################################### [100%]
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
charsets.jar...
Error: Could not open input file: /usr/java/jdk1.7.0_07/jre/lib/charsets.pack
tools.jar...
Error: Could not open input file: /usr/java/jdk1.7.0_07/lib/tools.pack
localedata.jar...
Error: Could not open input file: /usr/java/jdk1.7.0_07/jre/lib/ext/localedata.pack
Code:
[root@Ankur-Fedora ~]# rpm -Uvh /home/ankur218/Downloads/jdk-7u7-linux-x64.rpm
Preparing... ########################################### [100%]
package jdk-2000:1.7.0_07-fcs.x86_64 is already installed
Code:
[root@Ankur-Fedora ~]# java -version
java version "1.7.0_07"
Java(TM) SE Runtime Environment (build 1.7.0_07-b10)
Java HotSpot(TM) 64-Bit Server VM (build 23.3-b01, mixed mode)
Thanks a ton :)