lagerratrobe
Group: Members
Posts: 50
Joined: Dec. 2005 |
|
Posted: Dec. 28 2005,22:56 |
|
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.
|