Categories:- Unix Commands

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

Overview :


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 console / terminal.


#  wget --no-cookies --no-check-certificate --header "Cookie: gpw_e24=http%3A%2F%2F" ""


Where :

Cookie: :- 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.



phansi on, 2014-01-22 21:25:34
Just a few notes: --no-check-certificate : This is required because the starting http url does a redirect to a https url .. which has a certificate common name that doesn\'t match the host name. My browser doesn\'t seem to complain about this
Muthukrishnan on, 2013-11-15 13:16:08
Thanks a lot!
Post Your Comments
Security Code  *
Enter Security Code  *
Can't read the image? click here to refresh