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.

My system is Ubuntu 10.04.4 (LTS)

I know there is OpenJDK "1.6.0_24"

The version in Ubuntu is "1.6.0_20"

How do I install the latest version of the OpenJDK available?

share|improve this question
    
no idea why ... possibly because you had commentary in your question. I've tidied this for you. –  fossfreedom Apr 12 '12 at 11:55
1  
These are different, JDK6 and JDK7 are not compatible and both have "latest" versions. Like Python 2 and Python 3 –  Hristo Hristov Apr 12 '12 at 14:09
    
@HristoHristov Not completely true. Java 7 is fully backwards compatible with Java 6; anything that works on 6, also works on 7. –  Jesper Apr 12 '12 at 14:45
1  
@Jesper This would mean that Java6 should not exist anymore. Then why the latest linux distros still come with 6? I am not sure it is full backwards compatible. –  Hristo Hristov Apr 12 '12 at 15:14
    
@HristoHristov Companies are always very careful to jump onto a new version of anything. If their software works with Java 6 and they don't have a good business reason to go to 7, they stay at 6. And Oracle will continue to support 6 for a while. Upgrading doesn't happen immediately everywhere the day a new version comes out. –  Jesper Apr 12 '12 at 17:39

2 Answers 2

Do you really need OpenJDK? If the Oracle JDK is OK, I recommend WebUpd8 team's PPA. Click "Read about installing".

share|improve this answer

I Just used this line in terminal:

sudo apt-get install openjdk-7-jre

Hope it work for you.

share|improve this answer
1  
I'm guessing this has been voted down because OpenJDK 7 is only available from the package repositories in Oneiric (11.10) and later. –  Adrian Sep 18 '12 at 19:23
    
And because JDK 6 and 7 are different things with different "latest" versions. And 10.04 comes with JDK 6. –  Hristo Hristov Sep 18 '12 at 19:47

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.