You may find OpenJDK 6 and 7 binaries for Windows in openjdk-unofficial-builds github project.

Update: OpenJDK 8 and 11 LTS binaries for Windows x86_64 can be found in ojdkbuild github project.

Disclaimer: I've built them myself.

Update (2019): OpenJDK Updates Project Builds for 8 and 11 are available now.

Answer from alexkasko on Stack Overflow
🌐
OpenJDK
openjdk.org › install
OpenJDK: Download and install
If you want to develop Java programs then install the java-1.7.0-openjdk-devel package.
🌐
GitHub
github.com › alexkasko › openjdk-unofficial-builds
GitHub - alexkasko/openjdk-unofficial-builds: Unofficial OpenJDK installers for Windows, Linux and Mac OS X
Older downloads may be found at the bottom of the page. ... Note: description represents information about current builds (on the top of the page). For previous builds (at the bottom of the page) please see description, linked near them ... OpenJDK 7 binaries were built from the jdk7u80-b32 of official OpenJDK 7 Update Releases repositories forest.
Starred by 357 users
Forked by 67 users
Languages   C 54.6% | HTML 21.6% | Roff 6.3% | Shell 4.8% | C++ 4.1% | Perl 2.4%
🌐
Oracle
oracle.com › java › technologies › javase › javase7-archive-downloads.html
Java Archive Downloads - Java SE 7
Go to the Oracle Java Archive page · Thank you for downloading this release of the JavaTM Platform, Standard Edition Development Kit (JDKTM). The JDK is a development environment for building applications, applets, and components using the Java programming language
🌐
Oracle
jdk.java.net › java-se-ri › 7
Java Platform, Standard Edition 7 Reference Implementations
The Reference Implementations have ... will be available from Oracle and in most popular Linux distributions. ... You must accept the Oracle Binary Code License in order to download this software....
🌐
OpenJDK
openjdk.org › projects › jdk7
JDK 7
Production-ready binary distributions based on the JDK 7 code base are available now from Oracle and will be available soon in most Linux distributions and from Oracle's Java SE licensees.
Top answer
1 of 9
154

Security Warning

Packages in the PPA mentioned below are not updated with security patches to Java. Do not use in production; see alternative answers instead.

At time of writing, the last upload for OpenJDK 7 was done '2016-04-22' with version 7u95 and still available as 'latest', where Ubuntu 14.04 has been updated to 7u181.


UPDATE : ALTHOUGH THIS IS THE MOST VOTED ANSWER ITS PROBABLY NOT THE ONE YOU WANT TO USE IN 2018 DUE TO LACK OF SECURITY UPDATES BY THIS PPA.

I found the following instructions which worked for me :

sudo add-apt-repository ppa:openjdk-r/ppa  
sudo apt-get update   
sudo apt-get install openjdk-7-jdk  

This defines the “PPA for OpenJDK uploads (restricted)” as an additional package repositiory, updates your information, and installs the package with its dependencies (from that repository).

2 of 9
66

Edit 22-Jul-2019: This answer currently does not work. The below referenced JDK packages are no longer available on Debian Experimental. In any case, they lagged behind Ubuntu Trusty's packages which contained more recent security updates. Please refer to the other answers until this can be resolved (sorry, no ETA).


It does not look like the maintainer of openjdk-r/ppa will be updating the openjdk-7 package beyond version 7u95-2.6.4-3. That package's description "Copied from debian experimental in Primary Archive for Debian GNU/Linux" gives us a clue about how to handle this ourselves, though.

Option 1: Manual Installation

  1. Download the packages intended for your architecture:
    (for most users, this means amd64 if 64bit, or i386 if 32bit Ubuntu is installed)

    • openjdk-7-jdk
    • openjdk-7-jre
    • openjdk-7-jre-headless
    • libjpeg62-turbo
    • libfontconfig1 (only Ubuntu 17.10 and earlier; see note at bottom)
    • fontconfig-config (only Ubuntu 17.10 and earlier; see note at bottom)
  2. (Attempt to) install the packages using dpkg:

    Ubuntu 17.10 and earlier:

    sudo dpkg -i openjdk-7-* libjpeg62-turbo* libfontconfig1* fontconfig-config*
    

    Ubuntu 18.04 and later:

    sudo dpkg -i openjdk-7-* libjpeg62-turbo*
    
  3. Check the output from dpkg. If there were dependency problems – which is likely – you will see the following (with your architecture substituted for amd64):

    Errors were encountered while processing:
    openjdk-7-jre:amd64
    openjdk-7-jre-headless:amd64
    openjdk-7-jdk:amd64

    If there were no dependency issues, great, you're done, skip to #4. Otherwise, if you need to resolve some dependency issues, this is handled with:

    sudo apt install -f
    

    Notice, there is no need to re-run dpkg after letting apt resolve dependencies. It will automatically finish installation of the openjdk packages.

  4. Update java alternatives. You can view all installed java versions with update-java-alternatives --list. To activate OpenJDK Java 1.7, run:

    sudo update-java-alternatives -s java-1.7.0-openjdk-amd64
    

    You may notice an error about the IcedTeaPlugin.so plugin being unavailable. This isn't a real concern for developers working with the JDK.

  5. Verify java is working:

    java -version
    

    which should output something similar to:

    java version "1.7.0_161"
    OpenJDK Runtime Environment (IcedTea 2.6.12) (7u161-2.6.12-1)
    OpenJDK 64-Bit Server VM (build 24.161-b01, mixed mode)

Option 2: Automatic Installation (including updates with apt)

Pinning can be utilized to install and update openjdk-7-jdk and its dependencies from Debian repositories.

  1. Create a pinning file that tells apt to only consider packages that interest us (we certainly don't want our entire Ubuntu distribution "upgraded" with Debian experimental packages).

    Create file /etc/apt/preferences.d/debian with the below contents. You'll need superuser privileges, so use one of sudo vim, sudo nano, gksudo gedit, etc.

    Package: *
    Pin: release o=Debian,n=experimental
    Pin-Priority: -1
    
    Package: *
    Pin: release o=Debian,n=sid
    Pin-Priority: -1
    
    Package: openjdk-7-jdk
    Pin: release o=Debian,n=experimental
    Pin-Priority: 500
    
    Package: openjdk-7-jre
    Pin: release o=Debian,n=experimental
    Pin-Priority: 500
    
    Package: openjdk-7-jre-headless
    Pin: release o=Debian,n=experimental
    Pin-Priority: 500
    
    Package: libjpeg62-turbo
    Pin: release o=Debian,n=sid
    Pin-Priority: 500
    

    For Ubuntu 17.10 and earlier, also append the following (and see note at bottom):

    Package: libfontconfig1
    Pin: release o=Debian,n=sid
    Pin-Priority: 500
    
    Package: fontconfig-config
    Pin: release o=Debian,n=sid
    Pin-Priority: 500
    
  2. Install the Debian keyring:

    sudo apt install debian-archive-keyring
    

    Note: while this is the simplest method of adding the debian keyring, it may not be up to date. Check for output like the following when running apt update in step 4:

    W: GPG error: http://cdn-fastly.deb.debian.org/debian experimental InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 8B48AD6246925553 NO_PUBKEY 7638D0442B90D010
    E: The repository 'http://httpredir.debian.org/debian experimental InRelease' is not signed.

    If you see this error, then manually add the necessary keys with:

    sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 8B48AD6246925553
    sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 7638D0442B90D010
    

    where 8B48AD6246925553 and 7638D0442B90D010 should match the pubkeys you see in the warning message.

  3. Add the needed repositories:

    sudo add-apt-repository 'deb http://httpredir.debian.org/debian experimental main'
    sudo add-apt-repository 'deb http://httpredir.debian.org/debian sid main'
    

    Why not use a stable Debian repository? You'll run into unsatisfiable dependencies with Debian stable. The experimental (for openjdk-7) and sid (for libjpeg62-turbo, libfontconfig1, and fontconfig-config) repositories are more lenient with dependency versions.

  4. Update apt cache (expect this to take a while since Debian's package lists are big):

    sudo apt update
    
  5. Install openjdk-7-jdk:

    sudo apt install openjdk-7-jdk
    
  6. Update java alternatives. You can view all installed java versions with update-java-alternatives --list. To activate OpenJDK Java 1.7, run:

    sudo update-java-alternatives -s java-1.7.0-openjdk-amd64
    

    You may notice an error about the IcedTeaPlugin.so plugin being unavailable. This isn't a real concern for developers working with the JDK.

  7. Verify java is working:

    java -version
    

    which should output something similar to:

    java version "1.7.0_161"
    OpenJDK Runtime Environment (IcedTea 2.6.12) (7u161-2.6.12-1)
    OpenJDK 64-Bit Server VM (build 24.161-b01, mixed mode)

fontconfig notes

libfontconfig1 and fontconfig-config must be upgraded to 2.12 or later on Ubuntu 17.10 and earlier. The update packages from Debian do not contain Ubuntu's customizations, so some applications display ugly fonts with these packages installed; e.g. Charles Web Debugging Proxy. Depending on the programs you use, you may or may not be affected by this problem.

🌐
Java
download.java.net › openjdk › jdk7
OpenJDK™ Source Releases - Software Download - Java.net
These are the source downloads for the OpenJDK Project · The majority of OpenJDK code is released under the GNU General Public License Version 2 (GPLv2)
🌐
GitHub
github.com › openjdk-mirror › jdk7u-jdk
GitHub - openjdk-mirror/jdk7u-jdk
2. Either download and install the latest JDK7 from http://download.java.net/openjdk/jdk7/, or build your own complete OpenJDK7 by using the top level Makefile in the OpenJDK Mercurial forest.
Starred by 541 users
Forked by 428 users
Languages   Java 83.9% | C 12.3% | C++ 2.4% | Objective-C 0.7% | Shell 0.6% | JavaScript 0.1%
Find elsewhere
🌐
OpenLogic
openlogic.com › openjdk-downloads
OpenJDK Downloads | OpenLogic
Free, quarterly builds of OpenJDK for Linux, Windows, and MacOS.
🌐
Adoptium
adoptium.net
Home | Adoptium
Prebuilt OpenJDK Binaries for Free!
🌐
Red Hat
developers.redhat.com › products › openjdk › download
Download the Red Hat Build of OpenJDK | Red Hat Developer
March 31, 2025 - Download the Red Hat Build of OpenJDK at no-cost. The Red Hat build of OpenJDK is an open source implementation of the Java Platform, Standard Edition (Java SE)
🌐
Azul Systems
azul.com › home › azul downloads
Java 8, 11, 17, 21, 25 Download for Linux, Windows and macOS
January 30, 2023 - Click here to download the Azul Zulu Builds of OpenJDK for Java 8, 11, 17, 21, 25 for Linux, Windows and macOS. Also download Azul Platform Prime.
Top answer
1 of 3
12

I'm going to respond to my own question here to synthesize all my findings and the answers by @Agemen and @Kowser above.

  • OpenJDK is a reference implementation and does not change unless the spec changes
  • There is an OpenJDK update project which implements all updates in source (http://openjdk.java.net/projects/jdk7u/, source http://hg.openjdk.java.net/jdk7u/jdk7u-dev)
  • OpenJDK will not provide any compiled or packaged updates. In fact, OpenJDK provided binaries for the initial release just as a convenience.
  • It is the responsibility of third party OS/distributors to compile and package Java. E.g. RedHat and Ubuntu
  • No third party has yet released updates for Java 7
  • These third parties typically use IcedTea to do the compilation and packaging, but IcedTea itself does not do so. http://icedtea.classpath.org/wiki/Main_Page

We now have a combination of things that are making usage of Java really painful in open source server deployment

  • Oracle JDK has updates (including security fixes) that no OpenJDK package has. This makes using anything other than Oracle JDK result in poorer security
  • Oracle JDK can no longer be packaged distributed by third parties (e.g. Ubuntu). Now we have to install it by hand or script it, and maintain it, on all our servers.

I just don't get it...

Marc


EDIT

As @Krige pointed out, things seems to have finally kicked into gear with OpenJDK builds available with the latest updates!

2 of 3
3

I may be wrong, but I think sources can be retrieved with mercurial on a different repository. It seems to be dedicated from the one linked by Peter Lawrey in a comment on the question. The addrees is http://hg.openjdk.java.net/jdk7u/jdk7u-dev

I don't know exactly how branches and tags are managed by Oracle and the OpenJDK contributors, but maybe are the first stable released definitely frozen, and a cloned repo is used instead to ensure inclusion of fixes...

To answer the question, I'm not sure that the OpenJDK sites are supposed to propose any packaged version of the JDK. Oracle's infrastructure is made for that, I guess... I may have missed something, but I think the packaged JDK's that are given on the Oracle website is jsut a bundled, compiled version of the OpenJDK. As it has become the reference implementation, and is actively maintained Oracle, I can't see why it should be different.

EDIT : BTW, I can't find a direct link that I can use to download a packaged OpenJDK on the OpenJDK website, even for the first stable release. But once again, I may miss something obvious :-p

EDIT 2 : I've fixed the link - you know have the link to the repo of all the sources, not only the jdk ;-)

Moreover, as pointed in a link given in the comments, there are many projects under OpenJDK... So the repo structure is a bit complex, with hg "forests" (that I didn't know before trying to compile OpenJDK 7 by myself...).

🌐
Oracle
jdk.java.net › archive
Archived OpenJDK GA Releases
This page is an archive of previously released builds of the JDK licensed under the GNU General Public License, version 2, with Classpath Exception · WARNING: These older versions of the JDK are provided to help developers debug issues in older systems. They are not updated with the latest ...
🌐
OpenJDK
openjdk.org
OpenJDK
Learn about the key active Projects in the Community including Amber (high-productivity language features), Loom (lightweight concurrency), Panama (foreign functions and foreign data), Valhalla (primitive types and specialized generics), and, of course, the next version of Java and the JDK ...
🌐
OpenJDK
openjdk.org › projects › jdk7u
OpenJDK: JDK 7 Updates
The goal of this Project is to develop updates to JDK 7.