The variable you will want is "JAVA_HOME" and should be set to your JDK installation directory, for example, if you installed your JDK at C:\jdk, then
I set mine up under user variables, but there is only one user on my system so it doesn't make much difference for me.