Perform the following steps to install the JDK on your system:
Download the latest version (Java SE 7u67 at the time of writing this book) of the Java 7 JDK (not 8) from Oracle at http://www.oracle.com/technetwork/java/javase/downloads/index.html.
Agree to the license agreements.
Pick the installer compatible with your system.
Double-click on the installer and follow the onscreen instructions.