Hacker News new | ask | show | jobs
by layer8 209 days ago
Thanks, but what does “the default version system-wide” mean, other than setting environment variables or replacing the JDK in a fixed location?
1 comments

You can do that manually but it's tedious if you want to use multiple JDKs. Assuming you want to test two apps outside of an IDE, one only supports Java 8 API, and the other supports Java 21 API, you don't want to edit JAVA_HOME every time you switch back and forth between the two apps.

With scoop you can just launch the terminal and run `scoop reset [java-version]`