1. Install the actual JDK 7 (not JRE)
2. Right-click on "My computer" -> Settings
3. Go to "Advanced System Settings" -> "System Variables"
4. Create a variable called JAVA_HOME and set it's to the folder where Java is (by default it's C:\Program Files\Java\)
It helped me at least. Sorry if some names of menus are wrong, I am Ukrainian.