1

I want to download and install Java. The command i used was:

 wget --no-cookies --no-check-certificate --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F" http://download.oracle.com/otn-pub/java/jdk/7u55-b13/jdk-7u55-linux-x64.tar.gz

However i end up getting the following error. How can i solve this ?

--2014年05月09日 01:43:19-- http://download.oracle.com/otn-pub/java/jdk/7u55-b13/jdk-7u55-linux-x64.tar.gz
Resolving download.oracle.com... 165.254.202.218, 165.254.202.210
Connecting to download.oracle.com|165.254.202.218|:80... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: https://edelivery.oracle.com/otn-pub/java/jdk/7u55-b13/jdk-7u55-linux-x64.tar.gz [following]
--2014年05月09日 01:43:19-- https://edelivery.oracle.com/otn-pub/java/jdk/7u55-b13/jdk-7u55-linux-x64.tar.gz
Resolving edelivery.oracle.com... 23.6.118.140
Connecting to edelivery.oracle.com|23.6.118.140|:443... connected.
WARNING: certificate common name `www.oracle.com' doesn't match requested host name `edelivery.oracle.com'.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: http://download.oracle.com/errors/download-fail-1505220.html [following]
--2014年05月09日 01:43:19-- http://download.oracle.com/errors/download-fail-1505220.html
Connecting to download.oracle.com|165.254.202.218|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 5307 (5.2K) [text/html]
Saving to: `download-fail-1505220.html'
100%[===========================================================================================================================================================================>] 5,307 --.-K/s in 0s 
2014年05月09日 01:43:19 (571 MB/s) - `download-fail-1505220.html' saved [5307/5307]
asked May 10, 2014 at 4:47
1
  • 2
    Oracle requires you accept a license agreement before you can download anything from them. This should help you: stackoverflow.com/questions/10268583/… .. notice they added "Cookie: oraclelicense=accept-securebackup-cookie" Commented May 10, 2014 at 4:50

1 Answer 1

6

USe cookie -- oraclelicense=accept-securebackup-cookie

wget --no-check-certificate -c --header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/7u55-b13/jdk-7u55-linux-x64.tar.gz
answered May 10, 2014 at 6:57
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.