"javac" is not recognized

I added the Path 'C:\Program Files\Java\jdk1.6.0_21\bin' variable to the environment variables, but it still gives me this error: 'javac' is not recognized as an internal or external command, operable program or batch file when I try to run javac mycode.java . I'm going crazy, please help. Thanks.

+6
java environment-variables javac
source share
1 answer

Close the command prompt window and open it again so that the new environment variables take effect.

+6
source share

All Articles