form https://ivan-site.com/2012/05/download-oracle-java-jre-jdk-using-a-script/
Oracle has recently disallowed direct downloads of java from their servers
so we need use a script to get the file
wget --no-cookies --no-check-certificate --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie" "http://download.oracle.com/otn-pub/java/jdk/7u4-b20/jdk-7u4-linux-x64.tar.gz"
How to use wget download jdk7 from oracle,布布扣,bubuko.com
How to use wget download jdk7 from oracle