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

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

2 Answers 2

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.