Updated Java installtion routines to auto detect latest Java installtion and configure it as system default via alternatives