← Back to team overview

openjdk team mailing list archive

[Bug 218585] Re: update-java-alternatives doesn't change sun-java6-plugin to sun-java5-plugin

 

*** This bug is a duplicate of bug 226911 ***
    https://bugs.launchpad.net/bugs/226911

** This bug has been marked a duplicate of bug 226911
   javaplugin alternatives are installed incorrectly leading to errors from update-java-alternatives

-- 
update-java-alternatives doesn't change sun-java6-plugin to sun-java5-plugin
https://bugs.launchpad.net/bugs/218585
You received this bug notification because you are a member of OpenJDK,
which is subscribed to openjdk-6 in ubuntu.

Status in Source Package "java-common" in Ubuntu: Invalid
Status in Source Package "openjdk-6" in Ubuntu: New
Status in Source Package "sun-java5" in Ubuntu: New
Status in Source Package "sun-java6" in Ubuntu: New

Bug description:
Binary package hint: java-common

Using Ubuntu Hardy.

$ dpkg-query -W sun-java?-plugin java-common
java-common	0.28ubuntu3
sun-java5-plugin	1.5.0-15-0ubuntu1
sun-java6-plugin	6-05-0ubuntu1

I have both sun-java5-plugin and sun-java6-plugin installed. Using update-java-alternatives I cannot seem to switch using sun-java5-plugin if sun-java6-plugin is selected as a default first.


After 'update-java-alternatives -s java-6-sun'
$ ls -la /etc/alternatives/*java* | cut -d' ' -f8-10
/etc/alternatives/java -> /usr/lib/jvm/java-6-sun/jre/bin/java
/etc/alternatives/java.1.gz -> /usr/lib/jvm/java-6-sun/jre/man/man1/java.1.gz
/etc/alternatives/java_vm -> /usr/lib/jvm/java-6-sun/jre/bin/java_vm
/etc/alternatives/javaws -> /usr/lib/jvm/java-6-sun/jre/bin/javaws
/etc/alternatives/javaws.1.gz -> /usr/lib/jvm/java-6-sun/jre/man/man1/javaws.1.gz
/etc/alternatives/xulrunner-1.9-javaplugin.so -> /usr/lib/jvm/java-6-sun/jre/plugin/i386/ns7/libjavaplugin_oji.so

Then after 'update-java-alternatives -s java-1.5.0-sun'
$ ls -la /etc/alternatives/*java* | cut -d' ' -f8-10
/etc/alternatives/java -> /usr/lib/jvm/java-1.5.0-sun/jre/bin/java
/etc/alternatives/java.1.gz -> /usr/lib/jvm/java-1.5.0-sun/jre/man/man1/java.1.gz
/etc/alternatives/java_vm -> /usr/lib/jvm/java-1.5.0-sun/jre/bin/java_vm
/etc/alternatives/javaws -> /usr/lib/jvm/java-1.5.0-sun/jre/bin/javaws
/etc/alternatives/javaws.1.gz -> /usr/lib/jvm/java-1.5.0-sun/jre/man/man1/javaws.1.gz
/etc/alternatives/xulrunner-1.9-javaplugin.so -> /usr/lib/jvm/java-6-sun/jre/plugin/i386/ns7/libjavaplugin_oji.so

It seems that other alternatives are changed correctly except the plugin. If I remove the sun-java6-plugin package and then update-java-alternatives for java-1.5.0, sun-java-5-plugin is selected correctly.