In Ubuntu system, if you want to download the JDK files in Orcale directly through wget, it is generally impossible. So you have to use a special method.
First find the download link for the JDK version you need to download on the website:
After clicking on Accept License Agreement, right click on the Linux file you want to download, right-clicking on it and selecting "Copy link Address" to get the file download path.
For example, to download the Linux x64 version file Jdk-6u45-linux-x64.bin, the resulting path is:
http://Download.oracle.com/otn/java/jdk/6u45-b06/jdk-6u45-linux-x64.bin
And then when you use the wget download, write this:
wget--no-cookies--no-check-certificate--header "COOKIE:GPW_E24=HTTP%3A%2F%2FWWW.ORACLE.COM%2F; Oraclelicense=accept-securebackup-cookie "" Http://download.oracle.com/otn/java/jdk/6u45-b06/jdk-6u45-linux-x64.bin "
You can change the path of the last download file to the path of the file you want to download.
This allows you to bypass Orcale's identity license verification to download the JDK files directly.
"Docker" uses cookie spoofing to download JDK in Ubuntu using wget