Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Today, I have been trying to install Java JRE. I have meet some problems. I downloaded the file from Java's website. The file name is jre-7u25-linux-i586.tar.gz. I then extracted the file and have it in my downloads.

I know would like to complete the download, but how do complete this last step?

share|improve this question

A JRE is already available in the Ubuntu repositories: OpenJDK. It is not the official Oracle JRE, but it works fine.

To install it, just execute in the console:

sudo apt-get install openjdk-7-jre

For Java support in the browser, execute:

sudo apt-get install icedtea-7-plugin

Note: you could use the Ubuntu Software Center to search and install those packages.

OpenJDK works fine, but if you want the official Oracle JRE, replace the first command by:

sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.