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


#1

Hi,

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.


#2

Are you using the script package?

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

Some possibly related posts:

https://discuss.atom.io/search?q=%E2%80%98cmd%E2%80%99%20is%20not%20recognized%20as%20an%20internal%20or%20external%20command


#3

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??


#4

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