Bugzilla – Bug 327533
Java plugin for Firefox and JRE for Konqueror still does not work
Last modified: 2008-02-08 14:43:34 UTC
The JRE problem was resolved by installing 1.6 and making the vm executable /usr/lib/jvm/jre/bin/java a script which performs the export workaround and then calls the vm. This seems to work for Java apps. However, the matching Firefox 1.6 plugin still does not work. The rpm installs /usr/lib/jvm/java-1.6.0.u1-sun-1.6.0.u1/jre/plugin/i386/ns7/libjavaplugin_oji.so but it does not create a symlink for Firefox in /usr/lib/browser-plugins. Previously, there was a symlink /usr/lib/browser-plugins/javaplugin.so which pointed to /usr/lib/classpath/libgcwebplugin.so. Furthermore, the functionality of the 1.5 libgcwebplugin.so is not the same as 1.6 libjavaplugin.so: The former opens a security pop-up requesting permission to "trust" and/or "white-list" the applet, the latter does not, although it does successfully run the applets. Additionally, with 1.6 Konqueror is not being configured to call the JRE correctly. The java executable path is still /usr/lib/jvm/jre/bin/java, but as ref'd above that is a script now. So while having "java" now be a script which calls the vm apparently works for Java apps, Konq does not execute it the same way. I guessed that the vm executable might now actually be "java_vm" or "java.bin", but providing these to Konq did not resolve the problem. Exporting the env workaround separately at boot so it was active for the session and giving Konq a path to an executable (i.e., trying to do what the "java" workaround script does), did not work either.
I was having the same problem, running: 10.3 MozillaFirefox-2.0.0.8-1.1 java-1_6_0-sun-plugin-1.6.0.u3-0.3 All this was installed via YAST. When I went to http://time.gov, there was no Java plugin (also checked, not in /usr/lib/firefox/plugins). After a little searching, I found the /usr/lib/firefox/add-plugins.sh script, which is supposed to find and add the Java plugin. However, the script has JAVA="0" at the top, which prevents it from even trying to install the Java plugin. I manually edited the file and changed it to JAVA="1', then ran the script, and now Java is working fine in Firefox. So, two questions: 1) Is add-plugins.sh supposed to be run automatically at some point? 2) Why is JAVA explicitly turned off in this script?
Have installed Linux 10.3 from new including all updates and patches. Firefox browser is still not working with java. Have additionaly installed "java-1_6_0-sun-plugin" With link javaplugin_jni.so > /usr/lib64/firefox/plugins firefox can see the link but giv out an error. failed to initialize shared library. Wrong ELF class:ELFCLASS32 For Test J started Firefox on the Console including java Testaddress, so J get the error message. Why javaplugin_jni.so is written in 32 bit architecture? All other have x86_64. Konqueror works fine with java, no problem. Dear Robin, the file /usr/lib/firefox/add.plugins.sh j could not find in my system. tks for help
Heinz, it looks like your system is 64-bit, so I assume your script is at /usr/lib64/firefox/add-plugins.sh.
(In reply to comment #2 from Heinz Altschul) > Have installed Linux 10.3 from new including all updates and patches. Firefox > browser is still not working with java. Have additionaly installed > "java-1_6_0-sun-plugin" Heinz. somebody in newsgroup alt.linux.suse discovered a funny workaround. Execute/click in KDE system > configuration > Sun Java Plugin Control Panel look around but don't touch anything and finish with "OK". After this, Java in FF worked again. Because I forgot to save all relevant data files I'm not able to clarify what was going on there. Cheers!
comment #3 Robin thanksfor info. Unfortunatly the script /usr/lib64/firefox/add-plugins.sh does not exist in my computer. The directoy /usr/lib64/firefox contains 10 dirctories, 11 programms and 3 files. J was searching in the whole computer, but no " add-plugins.sh" to find. Under Yast for java the following files are installed:
comment #4 Dieter thanks for info. Similar as under com. 5 the most important file is missing. The button "Java Plug-in Control Panel (Java Plugin .... has no effect. The button give the following command: /usr/lib/jvm/java-1.6.0.u3.sr2-sun-1.6.0.u3/jre/bin/ControlPanel The file "ControlPanel" does not exist in my system. Instead /usr/lib/jvm... it should be /usr/lib64/jvm.... tks
comment #3 files installed: classpath gcc42-gij gcc-gij java-1_4_2-gcj-compat java-1_6_0-sun java-1_6_0-sun-plugin jre libgej42 xalan-j2 xerces-j2
On a separate Harddisk J installed Linux 10.3 from new but the Programm is built for a i686 Maschine (bevor it was x86_64). At moment no updates and patches installed. The combination Firefox and Java works fine from beginning. The Java Plug-in Control Panel no problem.
Hi, it looks like the problem in update, which breaks the symlinks in the /etc/alternatives. The correct system settings is: the /usr/lib/browser-plugins/javaplugin.so points to /etc/alternatives/javaplugin the /etc/alternatives/javaplugin points to your preffered JVM If the /etc/alternatives points to the nonexistent file, you should type (as root) /usr/sbin/update-alternatives --auto javaplugin to correct it. The last update (jdk5u14) will fix it.
So, should be this bug closed?
I opened this bug report originally. Yes, I believe the problem is fixed. Close the bug.