View Single Post
  #2 (permalink)  
Old 04-06-2007, 06:04 AM
570
 
Posts: n/a
Default Re: Java for Firefox in Gentoo

Quote:
Originally Posted by vorenus

How do you install Java for Firefox in Gentoo?

I was able to install Java for firefox when I was using YDL. But, That was the RPM version.
You can also install Java runtime environment into Gentoo following these steps:

1) Go to http://www-128.ibm.com/developerwork.../download.html

2) Select the J2SE 5.0 32-bit iSeries/pSeries or 64-bit iSeries/pSeries (depend if you are running a 32bit or 64bit userland)

3) If you are not yet registered you need to register an account now.

4) Click on "click here to download using http" if you want.

5) Download JRE (or SDK if you are planning to develop java apps) in .tgz format. (i.e. ibm-java2-jre-5.0-4.0-linux-ppc.tgz if you are running a 32bit ul)

6) In the case you are installing the 32bit JRE 5.0 (if not change accordingly) in a terminal type the following commands:

Code:
mkdir /opt/ibm cd /path/where/you/have/downloaded/files tar xvzf ibm-java2-jre-5.0-4.0-linux-ppc.tgz -C /opt/ibm #An example.You need to extract the file you have downloaded!
7) Now you have to modify your PATH variable in ~/.bashrc or in /etc/profile adding the following line:

Code:
export PATH=/opt/ibm/ibm-java2-ppc-50/bin:/opt/ibm/ibm-java2-ppc-50/jre/bin:$PATH
You can now install the Firefox java plugin simply typing:

Code:
cd /usr/lib/mozilla-firefox/plugins ln -s /opt/ibm/ibm-java2-ppc-50/jre/bin/libjavaplugin_oji.so .
9) That's it!

Hope this will be useful.
Reply With Quote