That's the Java Runtime Environment (JRE) in the System Preferences you're seeing.
You'll want to install the Java SE Development Kit (JDK) and install it:
JDK 1.7.0 • jdk-7u51-macosx-x64.dmg
JDK 1.8.0 • jdk-8-macosx-x64.dmg
They don't exactly make it clear that what is here, is not that same as here.