q8sxbw
Last Updated: February 25, 2016
·
301
· mehikmat
587e337464192cb0425836412f98970a

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
Say Thanks
Respond