Apps :: Trying to get java working in firefox...Help
Pheh.....
Now, because I couldn't get the sound working, I wiped the drive, and started fresh. For some reason java wont work now, and I did it the exact same way I did the last time (and it worked then).
I've got a HD install of DSL 2.0 and just enabled Java for Firefox in it. I'm running Firefox 1.0.6 (default that came with DSL), and j2re1.4.2 (Sun download page for current version was down).
Here's what I did to get it to work. ">" indicates work done in X-shell terminal window.
- download j2re1.4.2.bin file
> su
> mkdir /usr/java/
> chmod a+w /usr/java/
> mv j2re1.4.2.bin /usr/java/
> ./j2re1.4.2.bin
- hit space till license shows up, type "yes", hit <enter>
Ok, now for the critical part, you need to find the correct libjavaplugin_oji.so file. There's 2 of them you can choose from. Easiest way to get the full path is to do:
> find /usr/java/ -name "libjavaplugin_oji.so"
/usr/java/j2re1.4.2/plugin/i386/ns610/libjavaplugin_oji.so
/usr/java/j2re1.4.2/plugin/i386/ns610-gcc32/libjavaplugin_oji.so
You want the path to the file that is in the "ns610-gcc32" directory. Once you find it, select it with your mouse (double-click on the correct line in your find output) and cd to your home directory.
> cd ~<username>
> cd .mozilla/plugins/
> ln -s /usr/java/j2re1.4.2/plugin/i386/ns610-gcc32/libjavaplugin_oji.so libjavaplugin_oji.so
Start Firefox and make sure that in Edit --> Preferences --> Web Features the "Enable Java" and "Enable Javascript" boxes are checked. If they're not, check them, close and restart Firefox and then go to http://www.java.com/en/download/help/testvm.xml to test that it works.
Hope that works for you.
Huh.
I got the latest (jre-1_5_0_06-linux-i586), but when I get to the "run it" part( >./jre-1_5_0_06-linux-i586.bin), I get a "permission denied". I >su first, and >chmod a+w /usr/java...........shouldn't I be able to do what I want?
Update: Whoops, had to:
>chmod +x /usr/java/jre-1_5_0_06-linux-i586.bin
Forgot that bit. So's it work now?
Those instructions work well for a full hard drive install.
They would not be the best approach for most environments that DSL works in.
It is very confusing to post such instructions.
It is much simplier to grab the jre1_0_5.uci then add a link
in .mozilla/plugins, no sudo needed
cd .mozilla
ln -s /opt/jre1_5_0/plugin/i386/ns7/libjavaplugin_oji.so .
Works in all environments that DSL supports.
Next Page...
original here.