Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (4) </ 1 2 [3] 4 >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: Trying to get java working in firefox...Help< Next Oldest | Next Newest >
Phinger Offline





Group: Members
Posts: 38
Joined: Feb. 2005
Posted: Dec. 28 2005,20:13 QUOTE

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). :angry:
Back to top
Profile PM 
lagerratrobe Offline





Group: Members
Posts: 50
Joined: Dec. 2005
Posted: Dec. 28 2005,22:56 QUOTE

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.
Back to top
Profile PM 
Phinger Offline





Group: Members
Posts: 38
Joined: Feb. 2005
Posted: Dec. 29 2005,19:02 QUOTE

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
Back to top
Profile PM 
lagerratrobe Offline





Group: Members
Posts: 50
Joined: Dec. 2005
Posted: Dec. 29 2005,21:12 QUOTE

Forgot that bit.  So's it work now?
Back to top
Profile PM 
roberts Offline





Group: Members
Posts: 4983
Joined: Oct. 2003
Posted: Dec. 29 2005,21:54 QUOTE

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.


Edited by roberts on Dec. 29 2005,21:57
Back to top
Profile PM WEB 
18 replies since Dec. 07 2005,17:18 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (4) </ 1 2 [3] 4 >/
reply to topic new topic new poll
Quick Reply: Trying to get java working in firefox...Help

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code