jinfo plugin alternative should be mozilla-javaplugin.so instead of -javaplugin.so

Bug #966212 reported by Kirk Steffensen
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
openjdk-6 (Ubuntu)
Fix Released
Undecided
Unassigned
openjdk-7 (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

The openjdk-6-jdk package creates /usr/lib/jvm/.java-1.6.0-openjdk.jinfo

The last line of this file defines the alternative for the Firefox java plugin
plugin -javaplugin.so /usr/lib/jvm/java-6-openjdk/jre/lib/amd64/IcedTeaPlugin.so

Running update-java-alternatives with the original file results in an error of "update-alternatives: error: no alternatives for -javaplugin.so."

# sudo update-java-alternatives --set java-1.6.0-openjdk
update-alternatives: error: no alternatives for -javaplugin.so.

This happens because there is no /etc/-javaplugin.so alternative defined. The correct alternative is /etc/mozilla-javaplugin.so.

If you add "mozilla" to "-javaplugin.so" in /usr/lib/jvm/.java-1.6.0-openjdk.jinfo, update-java-alternatives runs correctly.
plugin mozilla-javaplugin.so /usr/lib/jvm/java-6-openjdk/jre/lib/amd64/IcedTeaPlugin.so

Please add "mozilla" to that line when the openjdk-6-jdk package installer generates /usr/lib/jvm/.java-1.6.0-openjdk.jinfo

Please also check openjdk-7-jdk for the same issue. I am running 11.10, so icedtea7-plugin is not available for me to check if the same issue occurs with openjdk-7-jdk. Someone should check it in 12.04, where I understand icedtea7-plugin is working.

Thanks for the good work on the openjdk packages.

Revision history for this message
Kirk Steffensen (kirk-steffensen) wrote :

I just confirmed on a fresh 11.10 VM that this also affects openjdk-7-jdk.

With a fresh 11.10 installation, sudo apt-get install openjdk-7-jdk resulted in /usr/lib/jvm/.java-1.7.0-openjdk-amd64.jinfo with the following final line:

plugin -javaplugin.so /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64/IcedTeaPlugin.so

Even though icedtea7-plugin isn't working in 11.10, when it does work, this line will need to read "mozilla-javaplugin.so" instead of "-javaplugin.so":

plugin mozilla-javaplugin.so /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64/IcedTeaPlugin.so

Revision history for this message
Matthias Klose (doko) wrote :

fixed in both precise and quantal

Changed in openjdk-7 (Ubuntu):
status: New → Fix Released
Changed in openjdk-6 (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.