1.在图形界面下的浏览器里面打开jdk的下载地址,就是有需要点击"Accept License Agreement "的那个页面
2.记录当前的url,例如:
http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html3.点击"Accept License Agreement ",然后得到需要下载的jdk的URL,例如:
http://download.oracle.com/otn-pub/java/jdk/7u25-b15/jdk-7u25-linux-x64.tar.gz
4.远程登录linux服务器,输入如下命令:
wget --no-check-certificate --no-cookies --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2Ftechnetwork%2Fjava%2Fjavase%2Fdownloads%2Fjdk7-downloads-1880260.html;" http://download.oracle.com/otn-pub/java/jdk/7u25-b15/jdk-7u25-linux-x64.tar.gz
即可直接下载jdk了,如果jdk版本不同了,请注意修改对应的文件名称
参考自:http://blog.kdecherf.com/2012/04/12/oracle-i-download-your-jdk-by-eating-magic-cookies/