How to install Java Runtime Environment JRE in Ubuntu

1 min


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.

There are many versions of runtime environment is available such as Oracle Java, OpenJDK, IBM Java. For this tutorial we will install OpenJDK which is most common for Ubuntu system.

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.

java -version

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)


We bring the latest tech, software news and stuff that matters. Stay in touch via Telegram, Twitter, YouTube, and Facebook and never miss an update!

Join our Telegram channel and stay informed on the move.

Also Read

SEE ALSO:   Linux Mint 17.1 “Rebecca” Cinnamon Edition RC released

Like it? Share with your friends!

Arindam

Creator of debugpoint.com. All time Linux user and open-source supporter. Connect with me via Telegram, Twitter, LinkedIn, or send us an email.
Subscribe
Notify of
guest

This site uses Akismet to reduce spam. Learn how your comment data is processed.

0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x