How to download Java/JDK directly from Oracle from command line

This is for information only, please review Oracle license before you try this. It may conflict with Oracle license. Don't use the download link directly, you need to explicitly accept the agreement from the web and copy that link from there. 

For JDK10

wget --no-check-certificate --no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie"

Change the link to the right version/package.

See also:

How to Install Oracle Java to Linux

Popular posts from this blog

Selenium supports Java

Installing chocolatey on Windows