r/javahelp • • Jun 14 '20

Why is it so difficult to find OpenJDK 12 Packages on Linux?

I'm currently trying to setup a linux (ubuntu) environment for our software which requires JDK 12 (don't ask...). I was hoping I could just simply use apt-get to install 12, but for some reason it seems like I cannot find any hosted packages anywhere, even on other repositories. I end up having to download a tar onto my machine and install it "manually". It's like all packages disappeared. Is there a specific reason for that?

16 Upvotes

8 comments sorted by

3

u/ratskinmahoney Jun 15 '20

It went out of support in September 2019, so use would be strongly discouraged. I'm assuming you need to run something weird that has specific compatibility issues, but as requested I won't ask :)

2

u/OTTOPI Jun 15 '20

Right, but is that also the reason they make it so inconvenient to install? To make sure nobody "accidentally" uses it instead of a new one?

4

u/morhp Professional Developer Jun 15 '20

It just doesn't make sense to distribute unsupported software, most Linux distributions have Java 8, the current LTS version (11), and the latest version (14 currently).

If you need a specific version, it's usually no big deal to download it manually, I like to use https://adoptopenjdk.net/archive.html, but there are other options of course.

2

u/ratskinmahoney Jun 15 '20

Yeah, I reckon so. Partly it protects users from installing insecure or incompatible packages; partly it protects developers from fielding issues raised against unsupported software and maintaining more repositories than are needed; and partly it protects the package management ecosystem from having to provide for a potentially enormous number of unsupported packages with the associated performance costs.

Annoying for you, but I think the real crime here was committed by whoever lumped you with a java 12 dependency 8 months after it ended support. Maybe a stern word about the importance of properly maintaining software or picking appropriate dependencies is in order :)

5

u/maokei Jun 14 '20

Looks to be available on launchpad

https://launchpad.net/ubuntu/+source/openjdk-12

but using SDKman for java is more convenient.

https://sdkman.io/

4

u/[deleted] Jun 14 '20

Depends on which distro you using. It’s fairly simple on Archlinux

3

u/shivasprogeny Professional Brewer Jun 14 '20

I’ve had similar trouble with inconsistent packages. Now I almost exclusively use Docker and sdkman on Linux for Java.

1

u/Mpittkin Jun 15 '20

Second sdkman ☝️