Super User is a question and answer site for computer enthusiasts and power users. 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

I have searched widely for an answer to this, but I couldn't find anything that would work. I currently have JRE version 1.6.0_26 (which I suspect is 6u26) however I want to upgrade it to the latest version (u31?). I can't use apt-get because the repository isn't there, so how could I install it another way?

share|improve this question
Of the methods you found, what have you tried and what didn't work for you? – slhck Apr 6 '12 at 18:42
Installing from a PPA repository (which only installed update 26 for me) and enabling the universe repository in the package manager. – Alex Apr 6 '12 at 18:44
up vote 0 down vote accepted

Its actually really easy, just download the bin file and execute it from the terminal (CD to the folder that it is in, then do ./.bin). Im not an expert with Ubuntu but its worth a try. Then move the exported files to your home folder or anywhere else and to run a java application, simply cd to the java directory and do ./java -jar .jar or whatever you wanna execute. Again, I have only done this once and can barely remember the steps. Excuse me if im wrong and there is probably a better, permanent way where you dont always have to run it from terminal and you can just double click a jar file to run it.

share|improve this answer
sudo apt-get install openjdk-7-jre


sudo apt-get install icedtea6-plugin


sudo add-apt-repository ppa:ferramroberto/java
sudo apt-get update
sudo apt-get install sun-java6-jre sun-java6-plugin sun-java6-fonts
share|improve this answer

Go to the Java site and check your installed version. Then you will get a link to download the latest version (including linux) along with detailed instructions to install.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .