¿Cómo configurar java_home en Windows 7?
Fui a las Variables de entorno en 'Sistema' en el panel de control e hice dos nuevas variables, una para las variables de usuario y otra para las variables del sistema. Ambos fueron nombrados JAVA_HOME y ambos apuntando a
C: \ Sun \ SDK \ jdk \ bin
Pero por alguna razón, sigo teniendo el siguiente error cuando ejecuto un comando Java ...
BUILD FAILED
C:\Users\Derek\Desktop\eclipse\eclipse\glassfish\setup.xml:161: The following error occurred while executing this line:
C:\Users\Derek\Desktop\eclipse\eclipse\glassfish\setup.xml:141: The following error occurred while executing this line:
C:\Users\Derek\Desktop\eclipse\eclipse\glassfish\setup.xml:137: Please set java.home to a JDK installation
Total time: 1 second
C:\Users\Derek\Desktop\eclipse\eclipse\glassfish>lib\ant\bin\ant -f setup.xml
Unable to locate tools.jar. Expected to find it in C:\Program Files\Java\jre6\lib\tools.jar
Buildfile: setup.xml
¿Como puedo solucionar este problema?