I'm attempting to install the Java JDK through the command line using WGET on ubuntu (no desktop).Here is the picture I took. The file that was downloaded was not the tar ball of the JDK:How can I download it via WGET?
Problem downloading Java JDK with WGET on Ubuntu
java;wget
If you see the resulting file the output it downloads a file of type: text/html.If you open the resulting file, you will find that it has in it's content the following:Network you must agree to the OTN license terms.Which is what you have to do during webpage browsing.But a quick google search I found this:wget --no-cookies --header Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2Ftechnetwork%2Fjava%2Fjavase%2Fdownloads%2Fjdk-7u17-download-1501626.html; http://download.oracle.com/otn-pub/java/jdk/7u17-b02/jdk-7u17-linux-x64.rpm --no-check-certificate -O jdk-7u17-linux-x64.rpmSource