Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

'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.

like image 651
good_evening Avatar asked Sep 05 '10 22:09

good_evening


1 Answers

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

like image 193
Leniel Maccaferri Avatar answered Nov 07 '22 00:11

Leniel Maccaferri