Copies of past Debian packages are available at http://snapshot.debian.org/

You can search there for openjdk-8. The last available version is 8u322-b06-1~deb9u1, logged at http://snapshot.debian.org/package/openjdk-8/8u322-b06-1%7Edeb9u1/ You can download the binary packages (.deb) for your architecture and install with sudo dpkg -i *.deb.

Whether it works or not depends on the library versions that it was built against. 8u312-b07-1 (and other older versions) is also available.

Alternatively you can access the Debian tracking page for the package at https://tracker.debian.org/pkg/openjdk-8. openjdk-8 is still listed there as available for unstable (as version 8u312-b07-1). If you click on the links for the binary packages, they will lead you to download links for the deb packages.

snapshot.debian.org is arguably simpler for ad-hoc downloading since it has the deb files in one place (the debian package repository finds them in http://ftp.us.debian.org/debian/pool/main/o/openjdk-8/ or its mirror sites)

snapshot.debian.org also suggests instructions for configuring sources.list. But if the package is not likely to be updated often then it might be simpler to just download the deb files manually.

Answer from Rizzer on Stack Exchange
Top answer
1 of 3
6

Copies of past Debian packages are available at http://snapshot.debian.org/

You can search there for openjdk-8. The last available version is 8u322-b06-1~deb9u1, logged at http://snapshot.debian.org/package/openjdk-8/8u322-b06-1%7Edeb9u1/ You can download the binary packages (.deb) for your architecture and install with sudo dpkg -i *.deb.

Whether it works or not depends on the library versions that it was built against. 8u312-b07-1 (and other older versions) is also available.

Alternatively you can access the Debian tracking page for the package at https://tracker.debian.org/pkg/openjdk-8. openjdk-8 is still listed there as available for unstable (as version 8u312-b07-1). If you click on the links for the binary packages, they will lead you to download links for the deb packages.

snapshot.debian.org is arguably simpler for ad-hoc downloading since it has the deb files in one place (the debian package repository finds them in http://ftp.us.debian.org/debian/pool/main/o/openjdk-8/ or its mirror sites)

snapshot.debian.org also suggests instructions for configuring sources.list. But if the package is not likely to be updated often then it might be simpler to just download the deb files manually.

2 of 3
5

Since Oracle changed Java licensing, Bellsoft (not affiliated) has done a great job at providing openJDK installers. They just work, and you can choose between:

  • JDK / JRE
  • Java 8 / 11 / 17 / 19
  • With or without JavaFX
  • Windows / Debian / Redhat / Alpine / Solaris / macOs installer

You'll surely find the correct installer at https://bell-sw.com/pages/downloads/#/java-8-lts.

You can install multiple Java versions if you wish. If you need to juggle between versions, you might be interested in this answer.

๐ŸŒ
DigitalOcean
digitalocean.com โ€บ community โ€บ tutorials โ€บ how-to-install-java-with-apt-get-on-debian-8
How To Install Java with Apt-Get on Debian 8 | DigitalOcean
June 28, 2017 - To ensure that we get the correct source line on Debian, weโ€™ll need to run the following command that also modifies the line: sudo add-apt-repository "deb http://ppa.launchpad.net/webupd8team/java/ubuntu xenial main" ... Now weโ€™ll go through the installation process of different versions ...
Discussions

java - How to install openjdk-8-jdk on Debian 10 (Buster)? - Stack Overflow
It seems Debian does not support openjdk-8-jdk anymore due to a security issue. What is the easiest way to install openjdk-8-jdk for Debian 10 (Buster)? More on stackoverflow.com
๐ŸŒ stackoverflow.com
how to install java 8 to debian?
Not familiar with the application, but if you installed it as a flatpak, it should already contain java versions 21, 17, and 8. Can you change the java version for that modpack in PolyMc? More on reddit.com
๐ŸŒ r/linux4noobs
3
2
July 3, 2024
How can I install Java 8 on Debian 12 (bookworm)? - Unix & Linux Stack Exchange
0 apt-get install gradle puts a 4.4.1 version (2012) for Java 8. Which cannot be installed anymore on Debian 13. More on unix.stackexchange.com
๐ŸŒ unix.stackexchange.com
June 26, 2023
linux - How to install JAVA 8 Debian 8 - Stack Overflow
update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk1.8.0_211/bin/java 4 update-alternatives --install /usr/bin/javac javac /usr/lib/jvm/jdk1.8.0_211/bin/javac 4 update-alternatives --config java More on stackoverflow.com
๐ŸŒ stackoverflow.com
๐ŸŒ
TecAdmin
tecadmin.net โ€บ install-java-8-on-debian
How To Install Java 8 on Debian 10/9/8 via PPA - TecAdmin
April 26, 2025 - If you have debian 8/9/10. On Debian 8 and 9 you can run โ€œapt install openjdk-8-jdkโ€ and for Debian 10 (Buster), if you want the java 8 version add this in the sources.list file in /etc/apt:
Top answer
1 of 12
158

Alternatively, you can use adoptopenjdk repository:

wget -qO - https://adoptopenjdk.jfrog.io/adoptopenjdk/api/gpg/key/public | sudo apt-key add -

sudo add-apt-repository --yes https://adoptopenjdk.jfrog.io/adoptopenjdk/deb/

sudo apt-get update && sudo apt-get install adoptopenjdk-8-hotspot

https://adoptopenjdk.net/installation.html

2 of 12
80

WARNING: this answer suggest unsupported and dangerous mixing of Debian releases. Follow the advice on your own risk, as it can break the system on upgrades, as explained in http://wiki.debian.org/DontBreakDebian#Don.27t_make_a_FrankenDebian

Package mirror search steps:

  1. In the Search package directories search for openjdk-8-jdk. You can see two results:

    • stretch (oldstable) (java): OpenJDK Development Kit (JDK)
    • sid (unstable) (java): OpenJDK Development Kit (JDK)
  2. Choose stretch repository

  3. Scroll to the Download openjdk-8-jdk section and choose your architecture. For example amd64

  4. Now you can see mirrors list and instructions how to install the package via apt:

    You should be able to use any of the listed mirrors by adding a line to your /etc/apt/sources.list like this:

    deb http://security.debian.org/debian-security stretch/updates main

Installation steps:

  1. Install software source manager

    apt-get update
    apt-get install software-properties-common
    
  2. Add mirror with openjdk-8-jdk

    apt-add-repository 'deb http://security.debian.org/debian-security stretch/updates main'
    apt-get update
    
  3. Install openjdk 8

    apt-get install openjdk-8-jdk
    

Note: You can use steps above to find an official Debian mirror with any other package you want to install

๐ŸŒ
Debian
wiki.debian.org โ€บ Java
Java - Debian Wiki
Each of them have a development environment (JDK) and a runtime (known as JRE, or Java Virtual Machines JVM). Here's a list of Java environment. Just run aptitude search "?provides(java-runtime)" on your system to list available packages). The default JRE/JDK installed in Debian isn't the same for all architecture.
๐ŸŒ
Debian
packages.debian.org โ€บ sid โ€บ amd64 โ€บ openjdk-8-jdk โ€บ download
Debian -- Package Download Selection -- openjdk-8-jdk_8u482-ga-1_amd64.deb
If you are running Debian, it is strongly suggested to use a package manager like aptitude or synaptic to download and install packages, instead of doing so manually via this website. You should be able to use any of the listed mirrors by adding a line to your /etc/apt/sources.list like this: ... Replacing ftp.de.debian.org/debian with the mirror in question. You can download the requested file from the pool/main/o/openjdk-8/ subdirectory at any of these sites:
๐ŸŒ
GitHub
gist.github.com โ€บ ansulev โ€บ 1b924e87bd091b1d78e06d918faa8fcf
Install Java 8 or 11 on Debian 12 ยท GitHub
Install Java 8 or 11 on Debian 12. GitHub Gist: instantly share code, notes, and snippets.
Find elsewhere
๐ŸŒ
Reddit
reddit.com โ€บ r/linux4noobs โ€บ how to install java 8 to debian?
r/linux4noobs on Reddit: how to install java 8 to debian?
July 3, 2024 -

Trying to run a minecraft mod-pack on debian and I need java version 8. I am running PolyMc off of flatpak and it says:

This instance is not compatible with Java version 21.

Please switch to one of the following Java versions for this instance:

Java version 8

Minecraft 1.21 runs without an issue but this mod pack requires minecraft 1.12.2

I had trouble installing with sudo apt-get install openjdk-8-jdk because debian package does not exist. Message I get is:

E: Unable to locate package openjdk-8-jdk

what do I do in this situation?

Edit: java path is set to /app/jdk/21/bin/java and I can change it when I want

๐ŸŒ
Kisphp
kisphp.com โ€บ linux โ€บ how-to-install-java-8-on-debian
How to install Java 8 on Debian - KISPHP
September 18, 2017 - sudo vim /etc/apt/sources.list.d/java-8-debian.list ... deb http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main ยท Now import GPG key on your system for validating packages before installing them.
๐ŸŒ
GitHub
gist.github.com โ€บ wagyourtail โ€บ b115f66d135b3818b63d9b27048d80e6
Installing Java 8 on various Linux distros ยท GitHub
Tell Debian you installed java, (this command assumes v151, check what jre folder is actually created) sudo update-alternatives --install "/usr/bin/java" "java" "/usr/local/java/jre1.8.0_151/bin/java" 1
๐ŸŒ
Reddit
reddit.com โ€บ r/debian โ€บ [deleted by user]
[deleted by user] : r/debian
April 7, 2024 - You can use Amazon's Corretto JDK builds, for example: https://docs.aws.amazon.com/corretto/latest/corretto-8-ug/generic-linux-install.html ... Note though that these are NOT available for Debian 12 as OP requested. They will have to either build them manually, or pin from sid; both options which come with drawbacks and aren't things I'd do in production -- which is why I linked to Amazon's supported builds, which in turn seems to have gotten some feathers ruffled. *shrug* ... The Adoptium Debian Repository provides OpenJDK packages for Java 8 (temurin-8-jdk).
๐ŸŒ
DigitalOcean
digitalocean.com โ€บ community โ€บ tutorials โ€บ how-to-install-java-with-apt-on-debian-9
How To Install Java with Apt on Debian 9 | DigitalOcean
September 7, 2018 - The easiest option for installing Java is to use the version packaged with Debian. By default, Debian 9 includes Open JDK, which is an open-source variant of the JRE and JDK. This package will install OpenJDK version 1.8, which is compatible with Java 8.
๐ŸŒ
Reddit
reddit.com โ€บ r/debian โ€บ where is java 8? (debian 12)
r/debian on Reddit: Where is java 8? (Debian 12)
November 15, 2023 -

Hello all.

I just want to ask why there is no package for jdk 1.8 forDebian 12? I've seen one for Sid the open-jdk-8.

Why is it so?

Can I change my sources.list for sid, install open-jdk-8 and then revert sources back to bookworm?

Thank you for your responses.

Top answer
1 of 15
16
I just want to ask why there is no package for jdk 1.8 forDebian 12? Debian only maintains a single JDK per release, because of the work it entails. (Also, it probably doesn't help that OpenJDK 8 was originally supposed to be EOL by now .) Can I change my sources.list for sid, install open-jdk-8 and then revert sources back to bookworm? I would avoid doing this. If you don't run in to any problems with mixing releases, that still leaves you with no way of getting security updates for Java. If you definitely need an alternative version of Java, third-party repositories are probably your best bet. I don't personally know what people currently prefer to use, but the Zula builds of OpenJDK are offered by extrepo , so that would be an easy thing to try first.
2 of 15
9
why there is no package for jdk 1.8 for Debian 12? Because openjdk-8 was superseded by openjdk-11, which in turn was superseded by openjdk-14, which in turn was superseded by openjdk-17, which is the default java version in Debian 12. Can I change my sources.list for sid, install open-jdk-8 and then revert sources back to bookworm? You probably can do that, but then you will get a lot of other packages from sid, and your system will become a "frankendebian". Not recommended. In general, installing packages from testing or unstable on a system running stable is not a good idea. Whenever I needed an old java version I usually take it from a previous release (not from testing or unstable). That usually works. But openjdk-8 is too old and it's not even in Debian 11. The real question here would be: Why are you still using java 8?
๐ŸŒ
Linux Tips
linux-tips.com โ€บ distributions
How to install Java 8 on Debian Jessie - Distributions - Linux Tips
May 26, 2016 - Follow the steps below: echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu xenial main" | \ sudo tee /etc/apt/sources.list.d/webupd8team-java.list echo "deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu xenial main" | \ sudo tee ...
๐ŸŒ
GitHub
gist.github.com โ€บ rexlManu โ€บ c48375b310d04626b8ddefa71fb56493
Install java 8 on debian 10 ยท GitHub
Yea only if u already had a java version installed, then you would need to change it with your command ๐Ÿ‘ ... Its only in Ubuntu Repositories Inside. For debian you need to add it
๐ŸŒ
Debian
wiki.debian.org โ€บ JavaPackage
JavaPackage - Debian Wiki
June 12, 2017 - Because ?IceaTea 8 isn't ready yet and those errors are about browser plugin only. ... This problems is due to missing dependencies of java-package package (related issue: 782132). To fix it simply run as root: # apt-get install libgl1-mesa-glx libfontconfig1 libxslt1.1 libxtst6 libxxf86vm1 libgtk2.0-0