On Thu, Jun 25, 2015 at 7:36 PM, Alexander Kapshuk < [email protected]> wrote:
> When trying to access a webpage that uses java applets, I found that the > applets wouldn't load for me any more. > > I'm running: > > equery -q l '*tea*' > dev-java/icedtea-bin-7.2.5.5 > dev-java/icedtea-sound-1.0.1 > dev-java/icedtea-web-1.5.1-r1 > > eselect java-vm list > Available Java Virtual Machines: > [1] icedtea-bin-7 system-vm > > firefox -v > Mozilla Firefox 31.7.0 > > > The plugincheck URL shown below is showing my IcedTea-Web Plugin as > unknown. > https://www.mozilla.org/en-US/plugincheck/ > > I ran firefox in the debuging mode as suggested on the IcedTea-Web website: > http://icedtea.classpath.org/wiki/IcedTea-Web > > ICEDTEAPLUGIN_DEBUG=true firefox 2>&1 | tee plugin.log > > Here's what it says: > > Your custom jre (/bin/java check) > /etc/java-config-2/current-icedtea-web-vm is not valid. Please fix > deployment.jre.dir in your deployment.properties. In attempt to run using > default one. > Failed to spawn applet viewer Failed to execute child process > "/opt/icedtea-bin-7.2.5.3/jre/bin/java" (No such file or directory) > plugin_test_appletviewer return > Your custom jre (/bin/java check) > /etc/java-config-2/current-icedtea-web-vm is not valid. Please fix > deployment.jre.dir in your deployment.properties. In attempt to run using > default one. > Unable to find java executable /opt/icedtea-bin-7.2.5.3/jre/bin/java > > Not sure why the path to java above is for 'icedtea-bin-7.2.5.3'. > > In stead of: > ls -l /opt/icedtea-bin-7.2.5.5/jre/bin/java > -rwxr-xr-x 1 root root 9540 Jun 14 08:21 > /opt/icedtea-bin-7.2.5.5/jre/bin/java > > Has anyone else experienced this? > > Thanks. > > > I've been able to fix the problem above. '/etc/java-config-2/current-icedtea-web-vm' in the debug output below turned out to be a symlink pointing the the old JVM, which is no longer there. <<<Your custom jre (/bin/java check) /etc/java-config-2/current-icedtea-web-vm is not valid. Please fix deployment.jre.dir in your deployment.properties. In attempt to run using default one. >>> ls -l /etc/java-config-2/current-icedtea-web-vm lrwxrwxrwx 1 root root 27 Jul 1 2014 /etc/java-config-2/current-icedtea-web-vm -> //usr/lib/jvm/icedtea-bin-6 ls -l /usr/lib/jvm/icedtea-bin-6 ls: cannot access /usr/lib/jvm/icedtea-bin-6: No such file or directory The new JVM is available here: ls -l /usr/lib/jvm/icedtea-bin* lrwxrwxrwx 1 root root 24 Jun 14 08:21 /usr/lib/jvm/icedtea-bin-7 -> /opt/icedtea-bin-7.2.5.5 I've set up a new symlink: ln -sf /usr/lib/jvm/icedtea-bin-7 /etc/java-config-2/current-icedtea-web-vm Restarted firefox, with 'https://www.mozilla.org/en-US/plugincheck/' now acknowledging my java as: You have the recommended Java installed (1.7.0_79). Wonder why this had not been done in the first place when java got updated? Is this an ebuild deficiency? Thanks.

