Installing Sun's Java 6 on Debian Etch
Develop | Posted December 26, 2008

Using Google I learned that Sun's JDK and JRE were in the stable repository for Debian Etch. Alas, the version in the stable repository is Java 5.  What if I want to install Sun's Java 6?

Back to Google.  I'm not an expert, but from what I found there appear to be at least three options:

  1. The fakeroot method, as detailed by Gianluca here.

  2. Get it from the unstable repository, and to do that correctly you really need to set up APT Pinning, as expertly described by Weiqi Gao here.

  3. Get it from the backports repository, as described here.

In the end, I went with option #3, which worked after a slight modification to the instructions. After adding an entry for the backports repository to /etc/apt/sources.list, I had to run apt-get update before issuing the apt-get install -t etch-backports sun-java6-jdk command.


By submitting this form, you agree to our
Terms of Use and Privacy Policy

Thanks for Subscribing

Keep an eye on your inbox for more great content.

Continue Reading

Add a little SmartBear to your life

Stay on top of your Software game with the latest developer tips, best practices and news, delivered straight to your inbox