added support to determine whether to set installed java version to defa...

...ult