How to install old versions of Java/JDK

If you need to install an old version of Java you may have some problems in finding the packages.

Most of the public repositories have been removed due to the vulnerabilities.

Anyway some people are still saving these old versions and making it available.

If you are a Linux/Debian user, an example is the following ppa:

You can simply add it running:

$ sudo add-apt-repository ppa:openjdk-r/ppa
$ sudo apt-get update

Unfortunately the openjdk7 it’s not available in the previous repository.

Anyway, Oracle is still saving the old packages for all platforms at the following links (an account on is required):

On the following websites you can find pre-built versions of the OpenJDK:

If you have more information about old versions of Java please share them here!


This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.