A Partial Solution
There is a folder /etc/alternatives
that lists which programs to run under various situations when more than one program might apply. For example, it tells which music player application you want to use when you launch an MP3 file. The "lists" are actually file links to whichever library or executable runs.
It also has file:
firefox-javaplugin.so --> /usr/lib/jvm/java-6-sun/jre/lib/amd64/libnpjp2.so
mozilla-javaplugin.so -> /usr/lib/jvm/java-6-sun/jre/lib/amd64/libnpjp2.so
xulrunner-javaplugin.so -> /usr/lib/jvm/java-6-sun/jre/lib/amd64/libnpjp2.so
I created a sim link as follows, borrowing the target used for the other 'javaplugin' alternates:
Make sure that you fill in the full path name that I was too lazy to type or paste.
prompt$ cd /etc/alternatives
prompt$ sudo ln -sf /usr/.../libnpjp2.so chromium-javaplugin.so
After a restart for the chromium browser, I get the warning:
Java Plugin Out of Date
and the browser blocks running of the stale plug-in.
I'm given the choice to run-once or update the plugin. Using run-once, the tests pass and all looks as expected.
Now I've got to discover how to update my java without breaking Mint-12. There are several postings about how the move from Java-6 to Java-7 breaks Nautilus and other parts of Mint and Ubuntu.
Now I'm confused. I asked java which edition I'm running:
and it looks to be current. However, the plugin appears to be a v6 edition.
prompt$ java -version
java version "1.7.0_147-icedtea"
OpenJDK Runtime Environment (IcedTea7 2.0) (7~b147-2.0-0ubuntu0.11.10.1)
OpenJDK 64-Bit Server VM (build 21.0-b17, mixed mode)
Since I get v7 to a simple java command, v7 should be the default edition, so why is the plug-in other than current? I get the following:
The only plugin I have seems to be the v6 edition. Nothing v7.
prompt$ locate libnpjp2.so
More when I solve that one.