Comment by emoII
14 hours ago
Never understood why you’d use sdkman for Java. I just do:
1. brew install openjdk@<version>
2. ln -s <homebrew path> </Library/JavaVirtualMachines/>
3. /libexec/java_home -v <version>
Afaik, with some aliases in you *shrc it basically reimplements sdkman, what else does it give you?
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.
9 replies →
Steps 2 & 3 expands to any installation method and version of java