good_evening
good_evening

Reputation: 21739

'javac' is not recognized

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

Answers (1)

Leniel Maccaferri
Leniel Maccaferri

Reputation: 102378

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

Upvotes: 6

Related Questions