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")
roland@vm.io
replied 20 Jan 2025 17:08 +0000
in reply to: https://benjojo.co.uk/u/benjojo/h/fTN4G3QM5zRf78M7f1
@benjojo workaround/hack: Amazon Coretto, they even provide a repository for use with apt https://docs.aws.amazon.com/corretto/latest/corretto-22-ug/generic-linux-install.html#debian-install-instruct
benjojo
replied 20 Jan 2025 17:15 +0000
in reply to: https://vm.io/users/roland/statuses/113861783206487242
@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
Tenzer@s.waq.dk
replied 20 Jan 2025 17:36 +0000
in reply to: https://benjojo.co.uk/u/benjojo/h/27WD96qKGCrf3RDMHb
@benjojo @roland There's also the Temurin distribution: https://adoptium.net/en-GB/installation/linux/
foobar@hsnl.social
replied 20 Jan 2025 17:10 +0000
in reply to: https://benjojo.co.uk/u/benjojo/h/fTN4G3QM5zRf78M7f1
benjojo
replied 20 Jan 2025 17:16 +0000
in reply to: https://hsnl.social/users/foobar/statuses/113861790753115812
@foobar Nope, there does not appear to be backports for JDK21 for bookworm. So manual bodge install it was...
snep@y.diskcat.com
replied 20 Jan 2025 17:56 +0000
in reply to: https://benjojo.co.uk/u/benjojo/h/fTN4G3QM5zRf78M7f1
@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
benjojo
replied 20 Jan 2025 18:00 +0000
in reply to: https://y.diskcat.com/users/snep/statuses/113861971854451501
@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
uvok@furry.engineer
replied 20 Jan 2025 17:06 +0000
in reply to: https://benjojo.co.uk/u/benjojo/h/fTN4G3QM5zRf78M7f1
@benjojo yeah, the Java situation is a pita. I have one application needing new Java versions and I download it from Adoptium. (Free of weird license situations? As far as I know).
gsuberland@chaos.soc..
replied 20 Jan 2025 17:10 +0000
in reply to: https://benjojo.co.uk/u/benjojo/h/fTN4G3QM5zRf78M7f1
@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.
mauvedeity@mastodon...
replied 20 Jan 2025 19:01 +0000
in reply to: https://chaos.social/users/gsuberland/statuses/113861788946454955
@gsuberland @benjojo also bitten by Imagemagick being severely out of date on my Debian WSL installation.
ao@queer.party
replied 20 Jan 2025 17:21 +0000
in reply to: https://chaos.social/users/gsuberland/statuses/113861788946454955
@gsuberland @benjojo ubuntu stable is probably fine these days due to their push for moving everything to snap. I remember having issues on debian due to the firefox on repos being too outdated, lol.
ch2500@chaos.social
replied 20 Jan 2025 17:18 +0000
in reply to: https://benjojo.co.uk/u/benjojo/h/fTN4G3QM5zRf78M7f1
@benjojo adoptium have an apt repo with all sorts of jdk versions that you can use. Debian is probably lacking jdk maintainer time.
nabijaczleweli@10101..
replied 20 Jan 2025 17:27 +0000
in reply to: https://benjojo.co.uk/u/benjojo/h/fTN4G3QM5zRf78M7f1
nabijaczleweli@10101..
replied 20 Jan 2025 17:30 +0000
in reply to: https://101010.pl/users/nabijaczleweli/statuses/113861854699283785
benjojo
replied 20 Jan 2025 17:47 +0000
in reply to: https://101010.pl/users/nabijaczleweli/statuses/113861866340451966
@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
nabijaczleweli@10101..
replied 20 Jan 2025 17:56 +0000
in reply to: https://benjojo.co.uk/u/benjojo/h/hln2Yfrm4d6hnKyX2B
@benjojo yes, the default jdk package on trixie depends on jdk 21; why this isn't jdk 23 is not obvious to me, but one has to assume it's because either (a) IME java isn't actually backwards-compatible so the default is only updated when the entire archive can be built with jdk 23? or (b) it's following Some openjdk stability policy
lapo@f.lapo.it
replied 20 Jan 2025 18:25 +0000
in reply to: https://benjojo.co.uk/u/benjojo/h/hln2Yfrm4d6hnKyX2B
@benjojo @nabijaczleweli 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).
lapo@f.lapo.it
replied 20 Jan 2025 18:24 +0000
in reply to: https://101010.pl/users/nabijaczleweli/statuses/113861854699283785
@benjojo @nabijaczleweli 21 is "better" than 23 becuse it is a LTS release supported until 2028, while 23 is only supported until… march 2025.
grawity@social.treeh..
replied 20 Jan 2025 19:29 +0000
in reply to: https://benjojo.co.uk/u/benjojo/h/fTN4G3QM5zRf78M7f1
@benjojo For UniFi we used to use the .deb repository provided by Eclipse/Temurin/Adoptium – whatever it is named this week – which seems to be the main recommended non-Oracle build, last I searched. (Was tempted to use the "Microsoft Build of OpenJDK" for the meme, but it seems to have more of an Azure focus. Regardless they provide an APT repository as well.)