Sun Java JRE

por | 16 marzo, 2008


Sun’s JAVA JRE adds full Java support to your system.

If you want to use Sun’s JAVA, open within firefox and download the Linux self-extracting file – NOT the Linux RPM in self-extracting file.

The following steps require root privileges. Please note that you have to edit the following commands if your Java version is newer than the one I downloaded.

mv /home/%your_username%/Desktop/jre-6u3-linux-i586.bin /opt/
cd /opt/
chmod +x jre-6u3-linux-i586.bin

Accept the license agreement and proceed.

rm -f jre-6u3-linux-i586.bin
ln -s /opt/jre1.6.0_03/plugin/i386/ns7/ /usr/lib/mozilla/plugins/

gedit /etc/profile.d/

It should look like this:

export J2RE_HOME=/opt/jre1.6.0_03
export PATH=$J2RE_HOME/bin:$PATH