How to load Oracle Java on Linux using wget / curl from the shell?

There are tools that have been specifically tested for Oracle Java 6u38 (or some versions of Oracle), so I can not use OpenJDK likes.

When I go to the Oracle site, the download link that I copy will not work in the shell. he downloads an html page that essentially says: "In order to download products from the Oracle Technology Network, you must agree to the terms of the OTN license"

How to load Oracle java using wget / curl?

+7
java oracle shell wget
source share
2 answers

So here is what I ended up with:

$ 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/6u38-b05/jdk-6u38-linux-i586.bin" 

This wget essentially transmits cookies that pretend that the user has agreed to the agreement and that other options are taken out of the response.

Copied directly from: https://ivan-site.com/2012/05/download-oracle-java-jre-jdk-using-a-script/

+19
source share

You probably don't need to. Just download it to your computer using a web browser, then if the shell is on another computer, use scp / ftp / wget to copy it through some kind of file.

-10
source share

All Articles