PDA

View Full Version : [all variants] Firefox closes because of Java?



ramoj02
August 12th, 2009, 04:59 AM
Hello.

Every time I go to a page that uses Java, like runescape.com, javatester.org, or games.yahoo.com, my Firefox just closes with no message or anything. How do I fix this?

Thanks in advance.

arky
August 12th, 2009, 05:22 AM
Maybe firefox is crashing out on you. Can you provide the distro and OS version.

Also enabled apport to generate a crash report

$ force_start=1 /etc/init.d/apport start
$ firefox

TheForumTroll
August 12th, 2009, 05:49 AM
Happens here too even though it used to work so I'll listen in ;)

I get this error:



Didn't find JVM under /usr/lib/firefox-addons/plugins

and this:


../../../../src/plugin/solaris/plugin2/common/JavaVM.c:104: InitializeJVM: Assertion `foundJVM' failed.

mthalis
August 12th, 2009, 05:59 AM
Did you install Java? this Error is missing Java virtual machine

ramoj02
August 12th, 2009, 06:00 AM
Maybe firefox is crashing out on you. Can you provide the distro and OS version.

Also enabled apport to generate a crash report

$ force_start=1 /etc/init.d/apport start
$ firefox

I'm using UNR 9.04 (Jaunty) on Acer Aspire One.

And I enabled apport to generate a crash report, then I went to a site that uses Java and my Firefox closed and gave me a meassge. It says:

"Sorry the program "firefox" closed unexpectedly.

TheForumTroll
August 12th, 2009, 06:07 AM
Is Java installed? Look in "about:plugins" in Firefox.

I fixed the error I just had like this:


sudo rm -r /usr/lib/firefox-addons/plugins/libnpjp2.so
sudo ln -s /usr/lib/jvm/jre1.6.0_13/lib/amd64/libnpjp2.so /usr/lib/firefox-addons/plugins/


Looks like Java was updated so the link broke.

mthalis
August 12th, 2009, 06:09 AM
After searching net I got this
https://bugs.launchpad.net/ubuntu/+source/firefox-3.0/+bug/278581

ramoj02
August 12th, 2009, 06:16 AM
Is Java installed? Look in "about:plugins" in Firefox.

I fixed the error I just had like this:


sudo rm -r /usr/lib/firefox-addons/plugins/libnpjp2.so
sudo ln -s /usr/lib/jvm/jre1.6.0_13/lib/amd64/libnpjp2.so /usr/lib/firefox-addons/plugins/


Looks like Java was updated so the link broke.

Yes. I'm pretty sure Java is installed.

And when I run:

sudo rm -r /usr/lib/firefox-addons/plugins/libnpjp.so

I get:

rm: cannot remove `/usr/lib/firefox-addons/plugins/libnpjp2.so': No such file or directory

TheForumTroll
August 12th, 2009, 06:20 AM
The lines wasn't supposed to be copy&pasted ;)

You have to create the symlink in the correct folder.

Type about:config in Firefox and look for a lot of Java stuff. If it is not there the Java plugin is not installed.

ramoj02
August 12th, 2009, 06:35 PM
The lines wasn't supposed to be copy&pasted ;)

You have to create the symlink in the correct folder.

Type about:config in Firefox and look for a lot of Java stuff. If it is not there the Java plugin is not installed.

Everything is installed properly and I created the symlink in the right folder.

I went to javatester.org to test if everything worked, it showed me my Java version and Firefox just suddenly closes after 2 seconds or so.

TheForumTroll
August 12th, 2009, 07:43 PM
Try this:
Open a shell, run firefox (just type firefox and hit enter). When it crashes look at the last line(s) it printed in the shell.

ramoj02
August 14th, 2009, 08:43 AM
Finally, I FIXED IT!

What I did was, first, I installed the OFFICIAL Sun Java. After that, I removed OpenJDK through Synaptics. That's it.

green0eggs
August 15th, 2009, 10:06 AM
Just to say I had the same problem: Firefox closing unexpectedly when using Java apps.

Which I solved by removing the OpenJDK package (I already had the official Sun package installed) as above.

Thanks ramoj02

Eric Warren
September 18th, 2009, 12:44 PM
Step 1) un-install java.

Step 2) re-install

if that does not work try this.

step 3) edit the jre-jdk but does it crash and make a icon on you're desktop?
if it does then i know the problem it says something like hserror3748ydg38 or something that's easy to fix if it says that email me at activeric@hotmail.com il get back too you a.s.a.p