Selecting java alternatives

As root, run the following to see which alternatives are out there, and which one is selected as default:

update-alternatives –display java

As root, use the following to select default.

update-alternatives –config java