Spark requires Java to run.
You can verify whether the Oracle JDK is properly installed on your laptop by opening a CMD line and running
Open a CMD prompt:
The message above that
'java' is not recognized as an internal or external command most likely means that the JDK is not installed. Or it could mean that the environment variables for Java are not set.
We recommend running the JDK 7 for the Spark labs. JDK 8 has not been tested with these labs and may or may not work. It's best to run with JDK 7 today to have a consistent environment as your peers.
There are two versions of the JDK for Windows: 32-bit and 64-bit.
You can determine whether you're running a 32-bit or 64-bit OS, by running the following command from a CMD line window:
You can download Java SE Development Kit 7 (JDK 7) from the following link: http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html
When you get to the link, accept the license agreement and download the appropriate JDK for your version of Windows:
After you download the installer file, run it and go through the normal installation prompts:
Finally, if you run
java -version again from the CMD-line you should see the Java JDK's version correctly showing up:
If you see the Java version displayed like the screenshot above, you have successfully installed the JDK.
Note, if the
java -version is still not correctly returning output, you may need to check your Evironment Variables from: Start > Control Panel > System > Advanced system settings (left side) > Advanced tab > Environment Variables (button at the bottom). Under the "System Variables" box, make sure that the "Path" variable correctly mentions your Java installation directory, which by default is either: