Downloading java 1.7.x using wget-Linux

There are often instances where we work in Remote systems using ssh via terminal  and we are   in need of  downloading java sdk  using command line  and we are not sure  how to get it done .Below is the command  used for the same purpose :

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

Replace the url for tar file with corresponding link and  you are done with it.

Share this article


About the author