[英]'cmd' is not recognized as an internal or external command, operable program or batch file
When I build my project in netbeans me it shows: 当我在netbeans中构建我的项目时,它显示:
'cmd' is not recognized as an internal or external command,
operable program or batch file.`
I'm using jdk 8 and maven 3.3. 我正在使用jdk 8和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;
到目前为止,我知道这不是您的IDE问题 。检查您的“system32”是否在PATH环境变量中正确定义。
Path = %SystemRoot%\system32;
you can get it worked in anyone of below ways 你可以通过以下方式使用它
c:\\windows\\system32
instead of %SystemRoot%\\system32
将路径设置为system32 c:\\windows\\system32
而不是%SystemRoot%\\system32
cmd.exe
转到system32文件夹,然后搜索并找到cmd.exe
command
instead of cmd.exe
使用command
而不是cmd.exe
We can get cmd.exe with already setted System root path in very simple way 我们可以通过非常简单的方式获取已经设置的系统根路径的cmd.exe
One variable named Path
was already set but i created a new variable which is PATH
so it replaced the Path
variable so Path = %SystemRoot%\\system32;
一个名为Path
变量已经设置但我创建了一个新变量PATH
因此它替换了Path
变量,因此Path = %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. 所以结论是你试图安装java或maven,你用PATH替换了Path并且它已经消失了。
So set the SystemRoot path in environment variable something like below. 因此,在环境变量中设置SystemRoot路径,如下所示。
PATH = %JAVA_HOME%\\bin;%M2_HOME%\\bin;%SystemRoot%\\system32;
PATH = %JAVA_HOME%\\bin;%M2_HOME%\\bin;%SystemRoot%\\system32;
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.