java - setting issue of JAVA_HOME and JAVA_PATH -


i have been using eclipse develop java program on windows 7 machine. works. typed "java" command prompt, shows message. in other words, think java correctly installed on machine. however, when open "environmental variable" setting on machine, cannot find either "java_home" setting , "java path" setting. problem of this?

some environment variables defined @ machine level , defined (and overwritten) @ user account level. following in windows cmd prompt:

c:\echo %path% or type c:\path

and verify output.

you can verify java home path writing simple test class following:

public class test {   public static void main(string[]s){     system.out.println(system.getproperty("java.home"));   } } 

Comments