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 recently changed my Wubi install into a full install, which runs a lot smoother than Wubi. I had to re-install all my stuff, because I did it the lazy-man's way, and after reinstalling Java, I decided to use Oracle's build, as it's known to be more stable, and there's not a single Java program that breaks under Oracle's.

But, now I find that certain programs, namely 3D ones, are having some big glitches, and I know for a fact these glitches are caused by Java 7 being not-so-Java 6-ish, as the same programs work fine under my Windows boot, which has Java 6 on it.

There is some information that may make it seem like I want to run OpenJDK, or something, but that is not the case. I just want to know how to downgrade from Oracle Java 7, down to Oracle Java 6.

Thank you.

EDIT: To install, I used the following method:

sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer
share|improve this question

You can uninstall it with ppa-purge:

1) Install ppa-purge: sudo apt-get install ppa-purge

2) Purge your java ppa: sudo ppa-purge ppa:webupd8team/java

3) Then you can download Java-6 from Oracle,

4) Open a terminal and make the downloaded file executable: chmod +x ~/path/to/downloaded/file

5) Run the installer: ~/path/to/downloaded/file

If you are feeling lazy, and agree with Oracle License, just paste this at terminal:

sudo apt-get install ppa-purge && sudo ppa-purge ppa:webupd8team/java ; cd ~/ ; p=$(uname -p) &&  if [ "$p" = "x86_64" ] ; then wget -c ; else wget -c ; fi ; chmod +x ~/jre-6u32-linux* ; sudo ~/jre-6u32-linux*
share|improve this answer
It didn't work to uninstall Java. I found a number of remanants of Java 7 remaining after doing what you'd suggested, to the point where Java 7 is still running, and Java 6 is nowhere to be found in my system, save for the home folder. – John Doe May 29 '12 at 2:14
That is weird. Can you try to manually uninstall the remaining packages before the step 3? – desgua May 29 '12 at 9:37
If oracle 7 is still there after trying desgua's answer try 'sudo update-alternatives --config java' – user123159 Jan 14 '13 at 10:29

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.