Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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.

share|improve this question
up vote 2 down vote accepted

can you jump through the hoops using lynx/links?

share|improve this answer
"Alert!: This client does not contain support for HTTPS URLs." I'm going to investigate this direction, though. – itsadok Jul 22 '09 at 6:17
After installing lynx-cur, this worked! – itsadok Jul 22 '09 at 6:40

Honestly in the amount of time it will take you to wait for responses to this question, it would probably be quicker to download/upload.

Agreed it is a bit absurd, but I've found myself doing this dozens of times for different things.

share|improve this answer

Note: you could try from some mirroring site
(however, it would require a verification of the integrity of the file, since they are not always official mirrors...)

share|improve this answer

Download it to a machine with a browser and move it over with SCP or rsync?

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.