Reputation: 1157
following is wget command
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-pub/java/jdk/8u45-b14/jdk-8u45-linux-x64.tar.gz"
after entering above command on centos 7 terminal follwing is the output
unable to resolve host address 'edeilvery.oracle.com'
Upvotes: 0
Views: 1347
Reputation: 352
Just execute this command
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-pub/java/jdk/8u151-b12/e758a0de34e24606bca991d704f6dcbf/jdk-8u151-linux-x64.tar.gz"
This is not the version you're looking for but this will definitely solve your issue of JDK :) This will perfrom few redirection before downloading the actual file.
Note: Command tested on CentOS 6.5 on 09/11/2017
Upvotes: 0
Reputation: 1071
Check you migh have a proxy if you do, excute this :
export http_proxy://address:port/
export https_proxy://address:port/
if not try also this :
dhclient -v
Upvotes: 1