Changed to jre1.6 for support on macOSX 10.6.x and made minor changes to support jre1.6.