Fix task #39247: Test for Java >= 1.6 in install script