.NET tool to make switching java versions on windows easy.
dotnet tool install -g JavaVersionSwitcher
This tool is tested and works on windows. I'm not sure if anything works on non-windows systems. (In fact I am quite sure that it will probably not work at all on non-windows systems.)
REM show all java versions currently installed
dotnet jvs scan
REM check if the java setup is "ok". (Checks %PATH% and %JAVA_HOME%)
dotnet jvs check
REM switch to another java version
dotnet jvs switch
After running dotnet jvs switch
the environment variables JAVA_HOME
and PATH
will be modified.
It is necessary to close the current terminal and open a new one to refresh the environment.
JavaVersionSwitcher follows the Contributor Covenant Code of Conduct.
We accept Pull Requests.
Small note: If editing the Readme, please conform to the standard-readme specification.