Question: c program is not recognized as an internal or external command java?
Answer: Type "%JAVA_HOME%\bin" at the prompt. Of course, you'll get the "not recognized as an internal or external command, operable program or batch file" error unless you end the path with an executable (e.g. "%JAVA_HOME%\bin\javac.exe" ), but you'll see that this way it complains about '"C:\Program Files\Java\jdk1.