JDK download from command line
Since Oracle started to prevent redistribution of the JDK, for some of us, connected to our systems only with a shell and without a debian based distribution, (see: How To Install Oracle Java 7 In Debian Via Repository) that was really annoying.
So I’ve made my script that’s a little bit different from what I’ve found on google and stackoverflow.
For the impatients, you use it in this way:
# jdk-download 8u40 i586
Here’s the code: