Download JDK onto a remote server
- by itsadok
I want to get the latest JDK onto a server in a remote location.
Downloading the JDK from Sun's website requires jumping through all kinds of hoops until you actually get the file. I'm not sure exactly if they use cookies or my IP address, but simply copying the file URL and trying wget on the server doesn't work.
Googling for mirrors of the JDK, I could only find old versions.
Right now I'm left with the option of downloading it into my computer, then uploading it to the server. This feels slow and stupid.
Anyone got a better idea?
EDIT: Thanks for all the replies. Just to clarify, as I'm writing this I'm rsyncing the 78MB file to my server. It should be done in about an hour, so it's not such a big deal. However, since this is not the first time I'm doing this, I was hoping for a better solution for next time.
Solution: What I ended up doing was
sudo aptitude install lynx-cur
www-browser http://java.sun.com/javase/downloads/
From there it's mostly using the arrow and enter keys, and answering "Yes" to a lot of lynx security questions (about cookies and certificates). Thanks to resonator.