Updated Java download parameters for jdk6

Oracle has changed its download policies, this change provides the latest workarounds to facilitate automated download of jdk6.