When using wgetto download jdk under linuxand using wgetto download jdk, we will find that only a static file with a suffix of .html is downloaded. after all, jdk is very large. it is unrealistic to download it locally and then upload it to the server. now we will tell you how to download jdk. 1: you only need to add...
In linux, when you use wget to download jdk, when you use wgetto download jdk, you will find that only a static file with a suffix of .html is downloaded. after all, jdk is large and local Download
It is unrealistic to upload data to the server. now let's tell you how to download jdk from the server. 1. solution: add a special cookie to wget: 1 www.2cto.com gpw_e24 = http % 3A % 2F % 2Fwww.oracle.com % 2F complete statement: 1 wget -- no-cookie -- header "Cookie: gpw_e24 = http % 3A % 2F % 2Fwww.oracle.com % 2F" http://download.oracle.com/otn-pub/java/jdk/7u7-b10/jdk-7u7-linux-i586.rpm and rename the downloaded jdk mv jdk-7u7-linux-* jdk-7u7-linux-i586.rpm 2. if Unable to establish SSL connection appears, add -- no-check-certificate to wget. www.2cto.com complete statement: wget -- no-cookie -- no-check-certificate -- header "Cookie: gpw_e24 = http % 3A % 2F % 2Fwww.oracle.com % 2F" http://download.oracle.com/otn-pub/java/jdk/7u7-b10/jdk-7u7-linux-i586.rpm 3. install the downloaded jdkrpm-ivh jdk-7u7-linux-i586.rpm
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.