Home » Linux-Unix Admin » Unix Commands » Download Oracle Java JRE / JDK in linux using wget by bypassing license
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 www.oracle.com%2F" "http://download.oracle.com/otn-pub/java/jdk/7u25-b15/jdk-7u25-linux-x64.tar.gz"