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
{"cc_re__cc_re__cc_by_sa_3_0": ["p-bottom'>\n<div class='cap-left'></div>\n<div class='cap-right'></div>\n</div>\n</div>\n<footer>\n<div class='footer-outer'>\n<div class='footer-cap-top cap-top'>\n<div class='cap-left'></div>\n<div class='cap-right'></div>\n</div>\n<div class='fauxborder-left footer-fauxborder-left'>\n<div class='fauxborder-right footer-fauxborder-right'></div>\n<div class='region-inner footer-inner'>\n<div class='foot section' id='footer-1'><div class='widget HTML' data-version='1' id='HTML1'>\n<div class='widget-content'>\n<a align=center rel=\"license\" href=\"http://creativecommons.org/licenses/by-sa/3.0/\"><img alt=\"Creative Commons License\" style=\"border-width:0\" src=\"http://i.creativecommons.org/l/by-sa/3.0/88x31.png\" /></a><br />This work is licensed under a <a rel=\"license\" href=\"http://creativecommons.org/licenses/by-sa/3.0/\">Creative Commons Attribution-ShareAlike 3.0 Unported License</a>.\n</div>\n<div class='clear'></div>\n<span class='widget-item-control'>\n<span class='item-control blog-admin'>\n<a class='quickedit' href='//www.blogger.com/rearrange?blogID=1616362845204924785&widgetType=HTML&", "der-left footer-fauxborder-left'>\n<div class='fauxborder-right footer-fauxborder-right'></div>\n<div class='region-inner footer-inner'>\n<div class='foot section' id='footer-1'><div class='widget HTML' data-version='1' id='HTML1'>\n<div class='widget-content'>\n<a align=center rel=\"license\" href=\"http://creativecommons.org/licenses/by-sa/3.0/\"><img alt=\"Creative Commons License\" style=\"border-width:0\" src=\"http://i.creativecommons.org/l/by-sa/3.0/88x31.png\" /></a><br />This work is licensed under a <a rel=\"license\" href=\"http://creativecommons.org/licenses/by-sa/3.0/\">Creative Commons Attribution-ShareAlike 3.0 Unported License</a>.\n</div>\n<div class='clear'></div>\n<span class='widget-item-control'>\n<span class='item-control blog-admin'>\n<a class='quickedit' href='//www.blogger.com/rearrange?blogID=1616362845204924785&widgetType=HTML&widgetId=HTML1&action=editWidget&sectionId=footer-1' onclick='return _WidgetManager._PopupConfig(document.getElementById(\"HTML1\"));' target='configHTML1' title='Edit'>\n<img alt='' height='18' src='https://resources.blogblog.com/i"]}