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

I ran the following in terminal

sudo apt-get remove openjdk-6-jre 


java -version 

still show as OpenJDK installed. Please see image below

enter image description here

How to remove OpenJDK from Ubuntu 12.04.01?

share|improve this question
up vote 3 down vote accepted

Try: sudo apt-get remove openjdk*

share|improve this answer
It worked. I cannot except answer earlier than 10 min. – Gaurav Agarwal Mar 16 '13 at 20:33

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.