Monday, July 2, 2012

Downloading jdk package

We are facing downloading issues for jdk packages from oracle web site

http://www.oracle.com/technetwork/java/javase/downloads/jdk6-downloads-1637591.html

The downloaded file should be in the form of some html file and which is not useful for our installation.

Example:
root@server [/usr/local/src]# wget http://download.oracle.com/otn-pub/java/jdk/6u33-b03/jdk-6u33-linux-x64.bin

100%[====================================================================================================================>] 5,307       --.-K/s   in 0s     

2012-07-01 14:57:24 (298 MB/s) - `download-fail-1505220.html' saved [5307/5307]

Here you can see that our downloaded file is a .html file.

Oracle web site is asking for license agreement and we need to confirm this , then only we can upload the original file to our server.

Here is the steps to direct jdk package from oracle web site to your server.

1.  root@server [/usr/local/src]# wget --no-cookies --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2Ftechnetwork%2Fjava%2Fjavase%2Fdownloads%2Fjdk-7u3-download-1501626.html;" http://download.oracle.com/otn-pub/java/jdk/6u33-b03/jdk-6u33-linux-x64.bin


Saving to: `jdk-6u33-linux-x64.bin?AuthParam=1341167305_9b2519bdbfdd528c07670b1edf6b1762'

100%[====================================================================================================================>] 72,029,591   144K/s   in 10m 25s

2012-07-01 13:37:27 (113 KB/s) - `jdk-6u33-linux-x64.bin?AuthParam=1341167305_9b2519bdbfdd528c07670b1edf6b1762' saved [72029591/72029591]

2. root@server [/usr/local/src]# mv jdk-6u33-linux-x64.bin\?AuthParam\=1341167305_9b2519bdbfdd528c07670b1edf6b1762 jdk-6u33-linux-x64.bin


Thats it now you have downloaded the latest jdk file from oracle web site to your server.

 wget --no-cookies --no-check-certificate --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com"    ----> without ssl

No comments:

Post a Comment