When I build my project in netbeans me it shows:
'cmd' is not recognized as an internal or external command,
operable program or batch file.`
I'm using jdk 8 and maven 3.3. My path system variable is:
%SystemRoot%\system32;%SystemRoot%;D:\POS\apache-maven-3.3.3-bin\apache-maven-3.3.3\bin;
We can get cmd.exe with already setted System root path in very simple way
you can get it worked in anyone of below ways
c:\windows\system32
instead of%SystemRoot%\system32
cmd.exe
command
instead ofcmd.exe
So far I understand this is not your IDE issue.Check your "system32" is correctly defined in the PATH environment variable .
One variable named
Path
was already set but i created a new variable which isPATH
so it replaced thePath
variable soPath = %SystemRoot%\system32;
got deleted.SO the conclusion is you were trying to install java or maven and you replaced Path with PATH and its gone.
So set the SystemRoot path in environment variable something like below.
PATH =
%JAVA_HOME%\bin;%M2_HOME%\bin;%SystemRoot%\system32;