Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.