How to set java_home on Windows 7?

I went to the Environment Variables in ‘System’ in the control panel and made two new variables, one for user variables and one for system variables. Both were named JAVA_HOME and both pointing to C:\Sun\SDK\jdk\bin But for some reason, I still get the below error when running a Java command… BUILD FAILED C:\Users\Derek\Desktop\eclipse\eclipse\glassfish\setup.xml:161: The following … Read more