Reputation: 21739
I have added Path variable 'C:\Program Files\Java\jdk1.6.0_21\bin'
in 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 am going insane, please help. Thanks.
Upvotes: 6
Views: 1913
Reputation: 102378
Close the command prompt window and open it again so that the new environment variables take effect.
Upvotes: 6