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

Every time I try to use openjdk java 7, nothing happens. I try 6, and still, no response.

So, i tried removing it with Ubuntu Software Center. Every time I click on "Remove", it appears to remove it, but then the other version automatically downloads.
For example, I remove openjdk java 6, and java 7 (with all the add-ons) downloads onto my computer. I go to delete that, and once 7 is removed, version 6 reinstalls automatically, with all the add-ons.

Anyone know where i can stop the automatic downloads so I can re-install openjdk java, and get my programs to run again?

share|improve this question

Something you installed is depending on Java (usually the package java-common). So you've got to have either one installed. You could also use Oracles Java packages (e.g. using this method). Then you can remove all OpenJDK (and IcedTea) packages like this:

sudo apt-get purge openjdk* icedtea*

You will keep the java-common package because Java is now provided by the sun-java* packages. If you want to entirely remove Java (and see which packages depend on it), try removing java-common.

share|improve this answer
Thanks, I'll try it! – Jon S. Aug 15 '12 at 2:23
@JonS., okay.. let me know if it works. If yes, please mark the question as answered. If not, tell us what happened. – mniess Aug 15 '12 at 22:03

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.