Public Service Announcement: DO NOT USE INTERNET EXPLORER!!!! Definition: MySpace [Mai' thpathe] (pronounced with a lithp), N. - 1. A shrine to Terrible teener web programming, the worst M$ driven Web2.sl0 has to offer.


stupid effing java!

stupid effing java!

Java is installed but not seen by firefox under ubuntu 9.04 jaunty jackalope
about:plugins doesnt reference Java(TM) Plug-in 1.6.0_20
File: /usr/lib/jvm/java-6-sun-
etcetera ad nauseam
Or when running firefox you get a disappearing crash with an error like

SomeUser@yourmachine:~$ firefox
OpenOffice path is '/usr/lib/openoffice'
Didn't find JVM under /opt/firefox/plugins
firefox-bin: ../../../../src/plugin/solaris/plugin2/common/JavaVM.c:104: InitializeJVM: Assertion `foundJVM' failed.

To make it Not So Stupid in Ubuntu Jaunty:

1 Install :
$ sudo apt-get install sun-java6-jre sun-java6-plugin sun-java6-jdk sun-java6-doc sun-java6-bin sun-java6-fonts
agree to DLJ license

2 Activate:
update-alternatives --config java
choose sun java (if choice given)

Even if only output is

There is only 1 program which provides java
(/usr/lib/jvm/java-6-sun/jre/bin/java). Nothing to configure.

it did something. your output may also be

# update-alternatives --config java
There are 2 choices for the alternative java (providing /usr/bin/java).

Selection Path Priority Status
* 0 /usr/lib/jvm/java-6-openjdk/jre/bin/java 1061 auto mode
1 /usr/lib/jvm/java-6-openjdk/jre/bin/java 1061 manual mode
2 /usr/lib/jvm/java-6-sun/jre/bin/java 63 manual mode

pick java-6-sun, in this case #2, logically enough by hitting 2[enter] lol

then do

# apt-get remove openjdk-6-jre openjdk-6-jre-headless openjdk-6-jre-lib

if it appears(as it does above) that openjdk is installed.

3 Clean Up old Links/Binaries (if any) (!!!!PLEASE adapt following to your environment - change paths etc)
Delete ALL pluginreg.dat file(s)
$ rm ~/.mozilla/firefox/ul9j1z05.default/pluginreg.dat
# updatedb && locate
[output] might be similar to

remove all instances if any of and EXCEPT the ones in "/usr/lib/jvm/- - - - -"
# rm /home/SomeUser/.mozilla/plugin/
# rm /home/SomeUser/.mozilla/firefox/plugins/
# rm /opt/firefox/plugins/
-- NOT --
rm /usr/lib/jvm/java-6-sun-

4 Link In Fresh Plugins
cd /opt/firefox/plugins/
sudo ln -s /usr/lib/jvm/java-6-sun- .
sudo ln -s /usr/lib/jvm/java-6-sun- .

# updatedb && locate
[output] should be

5 Test Firefox
$ firefox

click (Verify java ......) or the like

[output] should be

Verified Java Version
You have the recommended Java installed (Version 6 Update 20).

if this happens, WOOHOO!!!!

if not, keep on searchin... and comment back with what works for you!! had a similar problem that i forwarded my post to...

No comments: