Download JDK via wget by @MatthiasReining

Accept the Oracle license agreement

Download JDK via wget

When downloading a JRE/JDK you have to accept the "Oracle Binary Code License Agreement". Without accepting the license you're not able to download the package, therefore you cannot directly use wget. Maybe this could be a problem if you want to install a JDK on a server environment without X.

With following trick you're able to download the JDK with wget anyway.

wget --no-cookies --no-check-certificate --header "Cookie:" ""