Server Administration & Management

How to Download Oracle Latest Java JRE/JDK in linux by bypassing license using wget

Oracle has recently disabled direct download of java from their servers. So to download java, users have to visit their site via web browser and have to accept their license and terms, then users will get the download link. But if you are working of linux servers in which you can’t access the web browser, then  you should use wget command on the console. Use Below command to download java from linux terminal.

#  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/7u25-b15/jdk-7u25-linux-x64.tar.gz”

Where :

Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F :- It is a single cookie for all that is needed to bypass license and terms

–no-cookies : – Cookies are a mechanism for maintaining server-side state.  The server sends the client a cookie using the “Set-Cookie” header, and the client responds with the same cookie upon further requests.

–no-check-certificate : – Don’t check the server certificate against the available certificate authorities.  Also don’t require the URL host name to match the common name presented by the certificate.


June 26, 2013 - Posted by | Java, Tips & Tricks | , ,

No comments yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: