rewrite the jdk download script for mac and fixed the version to the lastest JDK 7&8.