Sun Java JRE

por | 16 marzo, 2008

Homepage: http://java.sun.com/

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

If you want to use Sun’s JAVA, open http://java.sun.com/javase/downloads/index.jsp 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
./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/libjavaplugin_oji.so /usr/lib/mozilla/plugins/

gedit /etc/profile.d/java.sh

It should look like this:

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