Install JRE on ubuntu 11.10 (Oneiric)
Sponsored Link
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
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).
Cheers.
The icedtea6-plugin package installs icedtea-plugin which gives you only Java 6 in your web-browsers, not Java 7!
fine, thanx.
Does the oracle jre also needs the icedtea6-plugin (or similar) to work in the browser?
though i have installed sun-java6,applet & swing is not working in my ubuntu11.10 desktop.
thx it worked !
thank you it worked fine
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.