Comment by hintymad

2 months ago

This works if all you need is OpenJDK. Per the article, sdkman allows one to install and switch between different versions and brands of JDKs.

> Per the article, sdkman allows one to install and switch between different versions and brands of JDKs.

OK but what benefit does that give? I hope we're not back to the bad old days of different apps needing different brands of JDK to run on.

  • It's really handy for switching between projects that are on different Java versions, plus tools like IntelliJ pick up on the correct version via the SDKMAN! configuration as well.

    • OK but again what's the use case for that? Can you not just use a new version of Java for all your projects, at most setting -source/-target in your project configuration? Certainly in the old days it was always backwards compatible, at least enough that you could develop under a current version and maybe just have a CI job to check that your code still worked on old versions.

      9 replies →