Install JRE on ubuntu 11.10 (Oneiric)

Sponsored Link
Java is an object-oriented programming language developed by Sun Microsystems in the early 1990s. Java applications are compiled to bytecode, which at runtime is either interpreted or compiled to native machine code for execution.

The language itself derives much of its syntax from C and C++ but has a simpler object model and fewer low-level facilities. JavaScript, a scripting language, shares a similar name and has similar syntax, but is not directly related to Java.

Note:- Please use one of the following method and each method install diffrent version of JRE

Method 1

Install openjdk using the following command from your terminal

sudo apt-get install openjdk-7-jre

Install Java for browser – firefox/chrome..

For running applets in your web browsers such as Mozilla Firefox or Google Chrome, you need to install icedtea plugin. Execute the following command from your terminal

sudo apt-get install icedtea6-plugin

Method 2

Install Oracle JRE Using PPA

Open the terminal and run the following commands

sudo add-apt-repository ppa:ferramroberto/java
sudo apt-get update
sudo apt-get install sun-java6-jre sun-java6-plugin sun-java6-fonts

Sponsored Link

You may also like...

8 Responses

  1. m.nikic says:

    You should probably inform people that method 1 and method 2 install don’t install the same version of java runtime environment. (one is java 7, and one is java 6).


  2. John K. says:

    The icedtea6-plugin package installs icedtea-plugin which gives you only Java 6 in your web-browsers, not Java 7!

  3. pedro says:

    fine, thanx.

  4. Alexh says:

    Does the oracle jre also needs the icedtea6-plugin (or similar) to work in the browser?

  5. aditya says:

    though i have installed sun-java6,applet & swing is not working in my ubuntu11.10 desktop.

  6. saif says:

    thx it worked !

  7. Nagaraju says:

    thank you it worked fine

  8. Shripad says:

    Even after installing by method 2 (everything went smoothly) when I execute the comand java-version at command prompt, it still says “command not found”. This is even after I restarted the machine. i understand if the JRE is installed correctly the command must return the version that is installed.

Leave a Reply

Your email address will not be published. Required fields are marked *