change default java version windows code example
Example: set default java version
# on linux
sudo update-alternatives --config java
# then just input the number of the jdk you
# want to use as default and hit Enter
# on linux
sudo update-alternatives --config java
# then just input the number of the jdk you
# want to use as default and hit Enter