Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

1 Answer 1

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

Your Answer

 
discard

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.