'cmd' is not recognized as an internal or external command, operable program or batch file



I am getting this error on the run of any java program or c++ program. I have added atom’s bin path to environment variable. i have tried reinstalling it, but nothing happened. At first “Could not find or load main class simple” which means atom is working but now it is not. Help me with this.

Thank you.


Are you using the script package?

Also, cmd is in C:/Windows/System32 for me, is that in your PATH?

Some possibly related posts:



Thanks buddy. I accidentally removed the system32 from my path. It is working but i have another problem now. i have added all the JAVA path into the environment variables, but still i am getting this error “Error: Could not find or load main class first”. Do you know what it is??


That sounds like an error given to you by the compiler. Perhaps you should investigate how Java identifies the main class.