openjdk-7-jdk has a dependency on openjdk-6-jre that it shouldn't. This results in openjdk-6-jre being installed with all of the "jre" alternatives set to openjdk-6-jre instead of openjdk-7-jdk like you'd expect from an installation of openjdk-7-jdk on a fresh Ubuntu 11.10 system.
If you run the following, you can see that both versions of openjdk are listed as java alternatives: # update-java-alternatives --list java-1.6.0-openjdk 1061 /usr/lib/jvm/java-1.6.0-openjdk java-1.7.0-openjdk-amd64 1051 /usr/lib/jvm/java-1.7.0-openjdk-amd64 If you run the following, it will update all of your alternatives to use java-7-openjdk: sudo update-java-alternatives --set java-1.7.0-openjdk-amd64 But you will now see two other bugs: 1) There is no icedtea7-plugin in 11.10. openjdk-7-jdk installs icedtea-plugin, but this is the openjdk6 version. https://bugs.launchpad.net/ubuntu/+source/icedtea-web/+bug/905714 2) The .jinfo file incorrectly has -javaplugin.so instead of mozilla-javaplugin.so https://bugs.launchpad.net/ubuntu/+source/openjdk-7/+bug/966212 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/901758 Title: Mixed Java command versions after installing openjdk-7-jdk To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/openjdk-7/+bug/901758/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
