Linux: Download JAVA SDK through command line

Downloading JAVA SDK isn’t trivial using wget as Oracle has set it to accept agreement before downloading it from their website. You can get around this issue using wget with the following params.

wget --no-check-certificate --no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/8u25-b17/jdk-8u25-linux-x64.tar.gz