I am facing a problem while trying to install Java 7 on Ubuntu.
The following are the steps that I performed for installing:
I installed the setup file from the link given below:
I have a file: jdk-7u1-linux-x64.tar.gz
I Untared it:
tar -xvf jdk-7u1-linux-x64.tar.gz
sudo mv ./jdk1.7.0_01 /usr/lib/jvm/jdk1.7.0_01
sudo update-alternatives –config javaHere it gave me the following output:
There is only one alternative in link group java: /usr/lib/jvm/java-6-sun/jre/bin/java Nothing to configure.
sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk1.7.0_01/jre/bin/java 1(I entered 1 here.)
sudo update-alternatives --config java
It showed the following output
java version "1.6.0_26"
Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode)
I am not sure if jdk1.7.0 is installed as its showing the version as 1.6.0_26.