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

As mentioned here, by running this command you can install Java 7 JRE.

 $ sudo apt-get install openjdk-7-jre

But sometimes I can't find the package in the official repository of Ubuntu even after updating my /etc/apt/sources.list . Am I the only one who has this problem or is it a problem in my version of Ubuntu.

share|improve this question
up vote 2 down vote accepted

openjdk version 7 was only available in the standard ubuntu repositories for Oneiric (11.10).

Both maverick (10.10) and natty (11.04), only version 6 of openjdk is available.

You have a couple of choices.

First consider upgrading through 11.04 to 11.10. You are probably already considering this since you are aware Maverick is just about to lose its official support.

Alternatively, you may wish to consider installing Oracle Java - either v6 or v7

How to install Java?

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.