Do NOT download Java from Oracle's site.
Download it from Java.com's site, preferably the 64-bit version.
The two are not the same!!
The Oracle one will cause all kinds of messy behaviour, such as the client instantly crashing during streaming, the Ender client refusing to open, and so on.
Sharing this as we spent a good 2 hours of troubleshooting with my friend on this issue, only to find out the two versions are different. (Check it with java -version.)
Hopefully, this will save someone some headache.