PDA

View Full Version : HOWTO: J2sdk java with firefox plugins


RastaMahata
May 5th, 2005, 08:04 PM
Here's an easy way to install java sdk 1.5 with firefox plugins.
Just follow these steps:

1. Add backports-extra to your repositories list:sudo gedit /etc/apt/sources.listIn the last line, add this (if not present):deb http://backports.ubuntuforums.org/backports hoary-extras main universe multiverse restricted
2. Update your apt-get info:sudo apt-get update
3. Install the java sdk package:sudo apt-get install sun-j2sdk1.5
4. Now open a console and type this:sudo ln -sf /usr/lib/j2sdk1.5-sun/jre/plugin/i386/ns7/libjavaplugin_oji.so /etc/alternatives/firefox-javaplugin.so
5. Open up firefox (close it and open it again if you had it open), and type this in the address bar:about:pluginsYou should see a "Java(TM) Plug-in 1.5.0_02-b09" Section.

Enjoy

PD: Sadly enough, I haven't downloaded the jre package yet, so I cant give exact instrucions, but it should be among the same lines... Good luck.

bored2k
May 5th, 2005, 08:39 PM
I believe this topic has been dealt with several times.
1. http://www.ubuntulinux.org/wiki/Java
2-4. The several scripts here
5-11. The 7 different steps on http://www.ubuntulinux.org/wiki/Java

Nonetheless, I suppose it's still good.
BTW, making a debian package automatically makes Java work systemwide [firefox, etc].

RastaMahata
May 5th, 2005, 09:29 PM
I believe this topic has been dealt with several times.
1. http://www.ubuntulinux.org/wiki/Java
2-4. The several scripts here
5-11. The 7 different steps on http://www.ubuntulinux.org/wiki/Java

Nonetheless, I suppose it's still good.
BTW, making a debian package automatically makes Java work systemwide [firefox, etc].
its just that I tried them all and had several problems myself. I thought it would be nice to have these instructions posted here.

Anyway, I dont know why the firefox plugin doesnt work out of the box... I should ask jdong that :S

bored2k
May 5th, 2005, 09:40 PM
its just that I tried them all and had several problems myself. I thought it would be nice to have these instructions posted here.

Anyway, I dont know why the firefox plugin doesnt work out of the box... I should ask jdong that :S
I'm not saying your guide is bad, I just used my argument as an excuse to post other options for newbies ;). Anyway, the debian package I created through step 5 automatically made java links for firefox. I believe jdong's did too. You sure theyre not there for you ?

htruong0101
May 7th, 2005, 12:23 AM
Thanks you for your post RastaMahata!!
I just install sdk and things went smoothly.

RastaMahata
May 7th, 2005, 11:47 AM
I'm not saying your guide is bad, I just used my argument as an excuse to post other options for newbies ;). Anyway, the debian package I created through step 5 automatically made java links for firefox. I believe jdong's did too. You sure theyre not there for you ?
Well, they're not there with j2sdk... maybe they are with jre :/

koyi
June 26th, 2005, 05:29 AM
Thanks for the tips.

Just to add that the main repo of the backport project seems to be disabled from public access. So you need to use one of the mirrors they provide instead.

Ref: http://backports.ubuntuforums.org/