Super User is a question and answer site for computer enthusiasts and power users. 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've installed openJDK6 64-bit server on my ubuntu image running in a VM. I installed it here in order to do some testing in comparison with our production environment. however, our production environment is using

$ java -version
java version "1.6.0_20"
OpenJDK Runtime Environment (IcedTea6 1.9.9) (6b20-1.9.9-0ubuntu1~10.04.2)
OpenJDK 64-Bit Server VM (build 19.0-b09, mixed mode)

while the version i've installed on my VM is:

$ java -version
java version "1.6.0_20"
OpenJDK Runtime Environment (IcedTea6 1.9.10) (6b20-1.9.10-0ubuntu1~10.04.2)
OpenJDK 64-Bit Server VM (build 19.0-b09, mixed mode)

(note the different version of IcedTea)

How can I revert to the older version of iced tea?

share|improve this question
up vote 1 down vote accepted

If you add this to a file called preferences in /etc/apt (create it if it isn't there)

Package: openjdk-6-jdk
Pin: version 1.9.9
Pin-Priority: 1001

The 1001 means that the older version takes priority over any newer version, and so the older version should be installed (and kept at this release even if you run dist-upgrade)

share|improve this answer
so how then do I actually change the version of iced tea? Re-run "sudo apt-get install openjdk-6-jdk"? – Ramy Dec 7 '11 at 4:06

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .