Comment

Comment by jakebasile

I just don't see the point in installing a version manager specifically for the JDK. It's fine to have multiple installed, and at least on Debian-likes you have the built in update-java-alternatives method to switch between them.

On macOS I wrote my own 9-line Zsh function that lists the JDKs available and sets JAVA_HOME.

In containers you'll never switch at all, just install whatever you want and be done with it.

ETA: I see in another comment someone said this doesn't work for things that aren't OpenJDK. But I've yet to run into a situation where I'd want to install anything except OpenJDK. That said, I think update-java-alternatives would work with them if they provide deb files to install themselves.

parent jakebasile 11 months ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton