In particular here: Right click on ‘Computer’ -> Properties -> Advanced settings -> Environment variables -> New variable with name ‘JAVA_HOME’ and value ‘C:\Alfresco\Java\jdk1.7.0_07′ -> Press ‘Ok’ and close all.
Remember to add the JAVA_HOME to the path variable.