Skip to content

sdkman

1 Post

How to Switch Between Java Versions with Several JDKs Installed

Switching between Java 17, 21 and 25 means moving java, javac and JAVA_HOME together, and often you don't need to switch at all. The commands for SDKMAN, jenv, java_home, alternatives and Windows, plus the javac --release trick.