Have you added the Java path to your system variables? https://www.java.com/en/download/help/path.xml