I have just installed the openjdk-7-jdk and openjdk-7-jre packages on my Debian box that already had OpenJDK 6 installed on it. However, when I look at my Java version, I see that it shows OpenJDK 6:
bui@debian:~$ java -version
java version "1.6.0_24"
OpenJDK Runtime Environment (IcedTea6 1.11.3) (6b24-1.11.3-2)
OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode)
bui@debian:~$
I did a bit of searching but found no answer on how to "replace" the old version with the new one (I did find a solution for Ubuntu but the command used there isn't available for me).
Could anyone tell me how I should proceed?
update-java-alternatives? If yes, why? – Artyom Kazak Jul 24 '12 at 0:17java-commonpackage. Check if it is listed in “Installed Files” forjava-common, and if it is present in/usr/sbin/. I just checked, on my box it is only available underrootfor some reason — maybe the situation is the same for you? – Artyom Kazak Jul 24 '12 at 2:07update-alternatives: error: alternative /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64/IcedTeaPlugin.so for mozilla-javaplugin.so not registered, not setting.– Alex Jul 24 '12 at 2:25