Salta al contenuto principale


The debian java/JRE/JDK situation seems insane.

bookworm (stable) is shipping JRE 17, lots of applications require at least 21, Trixie (next stable) is shipping JRE 21, the the current openJDK JRE version is 23

Most of the time if you search for the errors caused by out of date JRE's you get "just install Oracle JDK" with instructions, but as far as I can squint that comes with some licencing payment obligation. All of this feels like putting your head into a alligators mouth!

(Do not reply "use nix/arch")

Questa voce è stata modificata (2 giorni fa)
in reply to benjojo

every time I've mentioned super outdated packages in Debian/Ubuntu stable I always get people saying "I've never had an issue" and I have to wonder if they actually use their computers to do things beyond browse the internet. at one point the imagemagick package was 9 years out of date.
in reply to Graham Sutherland / Polynomial

also bitten by Imagemagick being severely out of date on my Debian WSL installation.
in reply to mauvedeity

they also don't backport security patches that far so anyone calling out to imagemagick from PHP or whatever would be vulnerable to a ton of RCE bugs if running LTS.
Questa voce è stata modificata (1 giorno fa)
in reply to benjojo

workaround/hack: Amazon Coretto, they even provide a repository for use with apt docs.aws.amazon.com/corretto/l…
Questa voce è stata modificata (2 giorni fa)
in reply to Roland

@roland ooh, that's a good one, I had not even spotted that. Next time I need to do this I guess I'll go down that route
in reply to FooBar

@foobar Nope, there does not appear to be backports for JDK21 for bookworm. So manual bodge install it was...
in reply to наб

and 24 as well; 25 hit experimental last week, so it may make it in time for the freeze
Questa voce è stata modificata (2 giorni fa)
in reply to наб

@nabijaczleweli Yeah but it seems that Debian Trixie (based on what I can observe with testing) picks openjdk-21 by default, even if higher ones are technically installable.

That being said java is mostly a mystery land to me, so I dunno how big of a deal that is of a default

in reply to benjojo

As a general rules in Java, stick to LTS as a user.
Other version are only useful if you're developing cutting-edge stuff yourself (and very rarely even in that case).
in reply to наб

21 is "better" than 23 becuse it is a LTS release supported until 2028, while 23 is only supported until… march 2025.
in reply to benjojo

Hmm, the default-jre package which installs the default JRE 17 is from Oracle too, does JRE 21 from Oracle have different licensing terms than 17? Since you've mentioned licensing payments when installing newer Oracle JREs
in reply to Snep

@snep I believe it does have different licensing terms, but JRE 17 is sadly ancient by a lot of folks standards.

I don't know for sure if the new Oracle JDK/JREs need payment, but the whole thing seems so muddy I don't want to find out. Especially after their behaviour with Virtual Box around that stuff

@Snep