Thursday, September 22, 2011

Installing Sun JRE (Java Run-time Environment ) in Ubuntu

Installing Sun JRE (Java Run-time Environment ) in Ubuntu

# Steps to install Sun JRE :

1) Download the bin file ( Linux self-extracting ) from here :

http://www.java.com/en/download/linux_manual.jsp

2) make the file executable :

Code:
      chmod u+x <file>
3) Get the root access :

Code:
         sudo -s
( It will prompt for your password )

4) Go to /usr directory :

Code:
          cd /usr
5) Make a directory named java

Code:
          mkdir java
6) Go to the java directory :

Code:
          cd java
7) run the downloaded file with full path :


e.g.
Code:
        /home/user_name/Downloads/jre-6u25-linux-i586.bin

This will install the JRE in your system.
# Additional Steps to install firefox-4.0 plugin

8) Go to firefox plugin directory :

Code:
        cd /usr/lib/firefox-4.0/plugins/
9) Create a link for the plugin :

Code:
       ln -s /usr/java/jre1.6.0_24/lib/i386/libnpjp2.so
10) For confirming the installation of plugin, close all firefox windows and re-open it .

Type in :

       about:plugins
in the awesome bar ( as firefox calls it ) and pressing enter key .

11) You can also confirm the installation of java plugin by the following link :

http://www.java.com/en/download/help/testvm.xml


Courtesy : http://www.java.com/en/download/help/linux_install.xml
Also available at : http://ubuntuforums.org/showthread.php?t=1764374