Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

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 installed Java 7 using the instructions here:

I want to know how to revert this i.e. uninstall Java 7.

I am on Ubuntu 13.10 64 bit

share|improve this question
up vote 2 down vote accepted

I followed the instructions on this answer:

Only thing I did different was that Java's files were in /usr/local/java and not /usr/lib/jvm.

share|improve this answer

Execute this command in a Terminal : sudo rm -rf /usr/local/java/j*.17.0_*/. This will remove Java binaries.

Now what you have to do is setting valid alternatives for Java commands. For this you can use the Alternatives Configurator program or the (sudo) update-alternatives command.

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.