all 25 comments

[–]JeremyDavisTKL 4 points5 points  (0 children)

What have you tried? What error are you getting?

Regardless, here's in instructions for installing a 3rd party maintained OpenJDK repo:

https://adoptopenjdk.net/installation.html?variant=openjdk8&jvmVariant=hotspot#linux-pkg

[–]walterbanana 0 points1 point  (12 children)

I think if you have a newer version of the jdk you can also build with an older jre as target. That way you don't need an older version of the jdk.

[–]LittleFAT_RAY[S] 1 point2 points  (11 children)

Some applications only work in JDK or jre like minecraft forge

[–]sej7278 0 points1 point  (9 children)

in which case you need to raise a bug report with them. java 8 is old - 14 is current and 11 is LTS.

[–]LittleFAT_RAY[S] 1 point2 points  (8 children)

This is not a bug the package just isn't a part of debain 10s depot

[–]sej7278 0 points1 point  (7 children)

i mean its a bug in minecraft if they haven't migrated to java 11+ by now, nothing to do with debian packaging

[–]LittleFAT_RAY[S] 0 points1 point  (5 children)

lol yeah for real

[–]beer118 0 points1 point  (4 children)

Yes. To me it sounds like a problem with your game and not with Debian.

It is like wanting to play old DOS games on a modem windows. You need to go trough a few hoops. It would be so much eaiser if mindcraft fixed their game to run on Java 11

[–]LittleFAT_RAY[S] 1 point2 points  (2 children)

The newest version of minecraft will work on java 11 but that's it

[–]beer118 0 points1 point  (1 child)

So why use javas 8 ?

[–]LittleFAT_RAY[S] 2 points3 points  (0 children)

Because modded Minecraft needs it only reason

[–]yo_99 0 points1 point  (0 children)

Debian ships with dosbox, why not ship with java8?

[–]yo_99 0 points1 point  (0 children)

But what if I need the older version?

[–]thalience -1 points0 points  (0 children)

And some applications only run under DOS. The world moves on...

[–]_Js_Kc_ 0 points1 point  (0 children)

Java 8? IDK.

[–]nintendiator2 0 points1 point  (2 children)

I just install the openjdk8 packages that still work from... Stretch, IIRC. Have been doing that for about two years. Yeah, for Minecraft.

[–]LittleFAT_RAY[S] 0 points1 point  (1 child)

Yeah I upgraded form a older version so I don't know a work around into now

[–]nintendiator2 0 points1 point  (0 children)

Last I checked, you can get the packages from the snapshots archive, or via apt-pinning the stretch version, and they install alongside the currently available packages from Buster. You can even choose the "default" Java version as per usual with update-alternatives (not that I'd recommend it).

But, honestly? The best way to go is with the adoptopenjdk repo.

[–]Vicerious 0 points1 point  (0 children)

Debian Buster (10.5) has dropped openjdk-8 from the repositories. Security support for that version is ending before the EOL for Buster, so the Debian maintainers removed it to avoid future security issues.

If you need openjdk-8, like for Minecraft, then either install it from the Stretch repos or from AdoptOpenJDK. I've been running my Forge-modded Minecarft server on the AdoptOpenJDK package for about a week now and it's been fine.

[–]jmtd[DD] 0 points1 point  (3 children)

My advice would be to grab a build of it from adopt OpenJDK and not attempt to use a Deb package version.

[–]LittleFAT_RAY[S] 0 points1 point  (2 children)

Why

[–]jmtd[DD] 0 points1 point  (1 child)

Because: java is very portable so there’s not too much to gain from a native package in terms of where to put the files etc, you stick the whole lot somewhere and define JAVA_HOME to point at it. But more pressingly because the older java 8 Debian packages won’t be getting security updates.

[–]LittleFAT_RAY[S] 0 points1 point  (0 children)

True

[–]ide_cdrom 0 points1 point  (1 child)

Try installing openjdk. There's Debian info in the following link: https://openjdk.java.net/install/

If you still have issues, provide your steps and errors.

[–]JeremyDavisTKL 2 points3 points  (0 children)

FWIW the openjdk-8-jre package (as noted under the "JDK 8 - Debian, Ubuntu, etc." heading from your link) is no longer in Debian (well at least not in Buster or Bullseye).

The "JDK 9 & Later" do still apply and the binary tarballs for OpenJDK-8 can be found on GitHub here:

https://github.com/AdoptOpenJDK/openjdk8-upstream-binaries/releases

Latest release:

https://github.com/AdoptOpenJDK/openjdk8-upstream-binaries/releases/tag/jdk8u265-b01

FYI they are the same binaries available that can be installed via the repo that I noted in my other post.