Iam new to java. iam getting error

'"java.exe"' is not recognized as an internal or external command"

while executing java application through eclipse. I have set the environment variable. Through command prompt if i give java or javac, it did not give me error. Only when i execute it through eclipse, i get this Error.

What is the problem? and how to solve this. Plese guide me.