linux change java jdk from terminal code example
Example 1: how to change java version in linux
$ sudo update-alternatives --config java
Example 2: change java version command line debian
sudo update-alternatives --config java
$ sudo update-alternatives --config java
sudo update-alternatives --config java