Fresh install on a brand new box (Dell Precision 3500) of 5.6. I install Sun java-1.6.0_26-b03, Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode)
Then ln -s /usr/lib/jvm/java-1.6.0-sun-1.6.0.26.x86_64/jre/lib/amd64/libnpjp2.so /usr/lib64/mozilla/plugins
about:plugins shows java enabled (oddly enough, I seem to have flash, 32-bit, in the 32 bit libs, and that doesn't show; guess I need to install nspluginwrapper). I go to the java tester, as recommended on the CentOS wiki, http://javatester.org/version.html, no pink rectangle, and if I click on the enabled link, firefox crashes, with firefox --no-remote -P Exception in thread "main" java.lang.NoClassDefFoundError: sun/plugin2/main/server/MozillaPlugin Caused by: java.lang.ClassNotFoundException: sun.plugin2.main.server.MozillaPlugin at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) Segmentation fault
Anyone got any ideas what's wrong? Clues for the poor?
mark
m.roth@5-cent.us wrote:
Fresh install on a brand new box (Dell Precision 3500) of 5.6. I install Sun java-1.6.0_26-b03, Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode)
Then ln -s /usr/lib/jvm/java-1.6.0-sun-1.6.0.26.x86_64/jre/lib/amd64/libnpjp2.so /usr/lib64/mozilla/plugins
about:plugins shows java enabled (oddly enough, I seem to have flash, 32-bit, in the 32 bit libs, and that doesn't show; guess I need to install nspluginwrapper). I go to the java tester, as recommended on the CentOS wiki, http://javatester.org/version.html, no pink rectangle, and if I click on the enabled link, firefox crashes, with firefox --no-remote -P Exception in thread "main" java.lang.NoClassDefFoundError: sun/plugin2/main/server/MozillaPlugin Caused by: java.lang.ClassNotFoundException: sun.plugin2.main.server.MozillaPlugin at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) Segmentation fault
Anyone got any ideas what's wrong? Clues for the poor?
This what I use for java in Firefox:
Java na CentOS-u i Firefox (new)
1. yum install java
2. Now you need to add the Java you have installed to the list of alternatives for the java executable: /usr/sbin/alternatives --install /usr/bin/java java /usr/java/latest/bin/java 2
Note: Tinker with /usr/java/latest/bin/java if you do not have Java installed at this location. In other words change it to point to the location of your installed Java executable from Sun.
3. Now configure alternatives to select the latest Java executable under /usr/java: /usr/sbin/alternatives --config java
Check the version of Java to ensure that it is from Sun: java -version
For example, this is the output I get:
java version "1.6.0_16″ Java(TM) SE Runtime Environment (build 1.6.0_16-b01) Java HotSpot(TM) 64-Bit Server VM (build 14.2-b01, mixed mode)
Go to /usr/lib64/mozilla/plugins: cd /usr/lib64/mozilla/plugins ili cd /usr/lib/mozilla/plugins
4. Create a symbolic link to libnpjp2.so (Firefox plugin for Java): ln -s /usr/java/latest/jre/lib/amd64/libnpjp2.so ili ln -s /usr/java/latest/jre/lib/i386/libnpjp2.so
Note: The above is applicable for JDK installation. For JRE it is likely to be: ln -s /usr/java/latest/lib/amd64/libnpjp2.so ili ln -s /usr/java/latest/lib/i386/libnpjp2.so 5. Restart Firefox and type the following in URL field and press Enter: about:plugins
You should now see a section titled Java(TM) Plug-in 1.6.x
You are done installing Java Plugin / Applet support in Firefox on CentOS 5.
ln -s /usr/java/latest/plugin/i386/ns7/libjavaplugin_oji.so u /usr/lib/mozilla/plugins
please watch out for i386/x86_64 differences, and replace path where needed.
Ljubomir
Ljubomir Ljubojevic wrote:
m.roth@5-cent.us wrote:
Fresh install on a brand new box (Dell Precision 3500) of 5.6. I install Sun java-1.6.0_26-b03, Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode)
Then ln -s /usr/lib/jvm/java-1.6.0-sun-1.6.0.26.x86_64/jre/lib/amd64/libnpjp2.so /usr/lib64/mozilla/plugins
about:plugins shows java enabled (oddly enough, I seem to have flash, 32-bit, in the 32 bit libs, and that doesn't show; guess I need to install nspluginwrapper). I go to the java tester, as recommended on the CentOS wiki, http://javatester.org/version.html, no pink rectangle, and if I click on the enabled link, firefox crashes, with firefox --no-remote -P Exception in thread "main" java.lang.NoClassDefFoundError: sun/plugin2/main/server/MozillaPlugin Caused by: java.lang.ClassNotFoundException: sun.plugin2.main.server.MozillaPlugin at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) Segmentation fault
Anyone got any ideas what's wrong? Clues for the poor?
This what I use for java in Firefox:
<snip>
For example, this is the output I get:
java version "1.6.0_16â³ Java(TM) SE Runtime Environment (build 1.6.0_16-b01) Java HotSpot(TM) 64-Bit Server VM (build 14.2-b01, mixed mode)
Did that: java -version gives java -version java version "1.6.0_26" Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode)
Go to /usr/lib64/mozilla/plugins: cd /usr/lib64/mozilla/plugins ili cd /usr/lib/mozilla/plugins
- Create a symbolic link to libnpjp2.so (Firefox plugin for Java):
ln -s /usr/java/latest/jre/lib/amd64/libnpjp2.so ili ln -s /usr/java/latest/jre/lib/i386/libnpjp2.so
Note: The above is applicable for JDK installation. For JRE it is likely to be: ln -s /usr/java/latest/lib/amd64/libnpjp2.so ili ln -s /usr/java/latest/lib/i386/libnpjp2.so 5. Restart Firefox and type the following in URL field and press Enter: about:plugins
Did all that, per the wiki instructions.
You should now see a section titled Java(TM) Plug-in 1.6.x
You are done installing Java Plugin / Applet support in Firefox on CentOS
Yup.
ln -s /usr/java/latest/plugin/i386/ns7/libjavaplugin_oji.so u /usr/lib/mozilla/plugins
please watch out for i386/x86_64 differences, and replace path where needed.
Ok, this used to be, for i386. At any rate, that's not in the Sun package, as released via RHN.
mark
m.roth@5-cent.us wrote:
please watch out for i386/x86_64 differences, and replace path where needed.
Ok, this used to be, for i386. At any rate, that's not in the Sun package, as released via RHN.
mark
This is what is now on my CentOS 5.6 64-bit:
use libnpjp2.so from /usr/java/jre1.6.0_22/lib/amd64/libnpjp2.so
and create link to /usr/lib64/mozilla/plugins/libnpjp2.so /usr/lib64/mozilla/plugins-wrapped/libnpjp2.so
I hope this path works for you. Please post results.
Ljubomir
Ljubomir Ljubojevic wrote:
m.roth@5-cent.us wrote:
please watch out for i386/x86_64 differences, and replace path where needed.
Ok, this used to be, for i386. At any rate, that's not in the Sun package, as released via RHN.
This is what is now on my CentOS 5.6 64-bit:
use libnpjp2.so from /usr/java/jre1.6.0_22/lib/amd64/libnpjp2.so
and create link to /usr/lib64/mozilla/plugins/libnpjp2.so /usr/lib64/mozilla/plugins-wrapped/libnpjp2.so
I hope this path works for you. Please post results.
The package RH releases puts it under /usr/lib/jvm/java-1.6.0-sun-1.6.0.26.x86_64/jre/, so my link is /usr/lib64/mozilla/plugins/libnpjp2.so -> /usr/lib/jvm/java-1.6.0-sun-1.6.0.26.x86_64/jre/lib/amd64/libnpjp2.so
file tells me it is 64 bit. ldd looks good.
Interesting: I was firing it up again, and was about to strace it, when it immediately crashed, trying to restore the last link I clicked on, to "is java enabled", with Exception in thread "main" java.lang.NoClassDefFoundError: sun/plugin2/main/server/MozillaPlugin Caused by: java.lang.ClassNotFoundException: sun.plugin2.main.server.MozillaPlugin at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) firefox: ../../../../src/plugin/share/plugin2/npjp2/MozPluginInstance.cpp:241: bool MozPluginInstance::SetWindow(void*, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int): Assertion `m_pluginObject != __null' failed.
I just rm'd the link to /usr/lib64/mozilla/plugins-wrapped/libnpjp.so.1, and it no longer crashes instantly on going to the javatester version page.
Ok, now for the strace... nice, I click on the enabled link, and it crashes with a SEGV.
More looking to do...
mark