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
Answer from Nizarazu on Stack OverflowAlternatively, 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
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:
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)
Choose stretch repository
Scroll to the Download openjdk-8-jdk section and choose your architecture. For example amd64
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:
Install software source manager
apt-get update apt-get install software-properties-commonAdd mirror with openjdk-8-jdk
apt-add-repository 'deb http://security.debian.org/debian-security stretch/updates main' apt-get updateInstall 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
Installing openjdk/jre-8 on Debian 10
apt - How can I install Java 8 on Debian 11 (Bullseye)? - Unix & Linux Stack Exchange
How do I now install Oracle JDK 8 on Debian 10? Now the Webupd8 repos Discontinued? Or even openjdk-8?
No Java 8 on Debian 10 (Buster)?
default-jre is based on OpenJDK, not Java SE.
More on reddit.comVideos
I manage a small linux server for a bunch of mediocre Minecraft servers and I'm trying to add a DW20 FTB server (which is on a very dated version of Minecraft and requires java 8) and haven't been able to get past this issue.
I was able to earlier this year, but since it has depreciated the public repo is no longer available.
I tried this repo, but doesn't work due to security reasons that I can't wrap my head around.
I'm back on 11 for the meantime, but I'm pulling hairs out trying to figure this out and really would prefer to stick with Debian vs Windows.
I know these are all probably stupid questions, but even though I've been hosting Linux servers for a few years there's still a lot of roadblocks I find myself running into.
Thanks in advane and sorry for another Minecraft question haha.
Edit: https://www.reddit.com/r/debian/comments/ic00jf/installing_openjdkjre8_on_debian_10/g1zdcnh/
This is the solution that worked for me. Thanks everyone else that helped, too!
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.
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.
Im setting up a new dedi for running my Minecraft server, I use a Minecraft server called paper, based off Spigot, and a lot of the plugins are built using Java 8. Stats are recorded, and 95% of servers use Java 8: https://i.imgur.com/wHOiVQi.png So I don't want to be the one that uses Java 11 and has to figure out issues. https://bstats.org/global/bukkit
What i'm struggling to figure out, is how do I install the Oracle JDK from the tar? Or alternatively how do I install openjdk-8 on Debian 10? When I search for it I cant see it appear in the repo's, there is a nvidia-openjdk-8-jre that appears.
This is how I did it previously: http://www.webupd8.org/2014/03/how-to-install-oracle-java-8-in-debian.html
I got recommended https://adoptopenjdk.net on reddit earlier, is this the way to do it now? I'm so overwhelmed with what the right way is.
Hello, I cant seem to find a package for Java8 on Buster. Only default-jre and such which has Java11. I can't tell if I'm insane or what? Sorry if this is a dumb question but could anyone help me out. Thankyou very much!
default-jre is based on OpenJDK, not Java SE.
I tried to file multiple bug reports about openjdk8 not being in the repositories of Buster, but Debian kept rejecting them. Java 8 is old and you can no longer get free updates without an account. It is being phased out. Last I checked, Webupd8 no longer has an active ppa for installing java 8.
This is a big problem for those of us who use java 8 apps, like Minecraft. Microsoft, which owns Minecraft now, supplies a java environment in the Minecraft installer for windows users but not Linux.
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.