q8sxbw
Last Updated: February 25, 2016
·
320
· mehikmat

New way to download java from terminal

New Way:

curl -L --header "Cookie: oraclelicense=accept-securebackup-cookie"   $JAVA_DOWNLOAD_URL -o $JAVA_FILE

old way is no longer supported and new need to be used since oracle has changed cookie policy.

Old Way:

curl -L --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com;" $JAVA_DOWNLOAD_URL -o $JAVA_FILE