How to install Java Runtime Environment JRE in Ubuntu
Java Runtime Environment (JRE) is needed for many Ubuntu applications such as writing and Running macros in LibreOffice. The runtime also required for web browsers to display some websites.
OpenJDK JRE installation in Ubuntu
To install JRE in ubuntu, open terminal and run below command. Give your root password when asked for.
sudo apt-get install openjdk-7-jre
Wait for the installation to finish. Total size of the download is approx 43mb.
icedtea browser plugin installation in Ubuntu
If you want to install incedtea browser plugin in Ubuntu, open terminal and run below command. Give your root password when asked for. This browser plugin works with all common browsers – Firefox, Chrome etc.
sudo apt-get install icedtea-7-plugin
OpenJDK SDK installation in Ubuntu
If you are a Java developer and wants to install JDK in ubuntu, open terminal and run below command. Give your root password when asked for.
sudo apt-get install openjdk-7-jdk
Test whether Java is installed
Run below command in terminal to check your Java installation.
You should be getting output similar to this:
java version "1.7.0_65"
OpenJDK Runtime Environment (IcedTea 2.5.1) (7u65-2.5.1-4ubuntu1~0.14.04.2)
OpenJDK 64-Bit Server VM (build 24.65-b04, mixed mode)