- Download the SDK from here
- Install the SDK. For example: sudo rpm -Uvih <sdk rpmfile> or sudo sh ./<sdk bin file>
- Once it is installed, copy-paste the following script and execute it
#!/bin/sh
for FP in /usr/java/default/bin/* ; do
NAME=${FP##*/}
echo installing $NAME
sudo alternatives --install /usr/bin/${NAME} ${NAME} /usr/java/default/bin/${NAME} 20000
alternatives --display "${NAME}" | grep "${NAME}"
done