Force to use specific version of JAVA in centos
There are 2 instances of java version on my VM and I want to force to use java "java-1.8.0-openjdk" using shell script. # sudo alternatives --config java There are 2 programs which provide 'java'. Selection Command ----------------------------------------------- * 1 java-1.8.0-openjdk.x86_64…