With M as the major, m as the minor, and r as the revision,

export M=8 m=65 r=17; wget --no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/${M}u${m}-b${r}/jdk-${M}u${m}-linux-x64.tar.gz

Useful for scripting, headless operation, continuous integration, and just for any time when one doesn’t have any for unneeded account creation.

Some time ago, a PPC/Mac OS X 10.5 build slave used with Jenkins started consistently failing with a java.io.IOException: Unexpected termination of the channel due error on some Jenkins slaves.

Relaunching the agent showed the reason for the error was due to a java.lang.InternalError: Can't connect to window server exception.

This was fixed, based on some insight from StackOverflow, by setting -Djava.awt.headless=true in the Advanced/JVM Options for this host.