set default java version

Shell
# on linux
sudo update-alternatives --config java
# then just input the number of the jdk you
# want to use as default and hit Enter
Source

Also in Shell: