TO MAKE SURE IT WORKED:
Open a new command prompt and type in: java -version
If it says that java is "unrecognized", then you have done something wrong...either you have not installed java correctly, or you did not set the JAVA_HOME and Path variables correctly.