I'm trying to change the JDK that the linux terminal is using to run jar files from 1.6 to 1.7. I'm trying to do this by using the command update-alternatives --config java
which is giving me the following output:
There are 2 choices for the alternative java (providing /usr/bin/java).
Selection Path Priority Status
------------------------------------------------------------
* 0 /usr/lib/jvm/java-6-openjdk-amd64/jre/bin/java 1061 auto mode
1 /usr/bin/gij-4.7 1047 manual mode
2 /usr/lib/jvm/java-6-openjdk-amd64/jre/bin/java 1061 manual mode
However if I go to the directory /usr/lib/jvm
I can see that java-7-openjdk-amd64
is present (among others).
What is the problem that is not causing this option to show when issuing the command update-alternatives --config java
?