当我在NetBeans中构建我的项目时,它会显示:
'cmd' is not recognized as an internal or external command,
operable program or batch file.`
我正在使用jdk 8和maven 3.3。我的系统路径变量是:
%SystemRoot%\system32;%SystemRoot%;D:\POS\apache-maven-3.3.3-bin\apache-maven-3.3.3\bin;
当我在NetBeans中构建我的项目时,它会显示:
'cmd' is not recognized as an internal or external command,
operable program or batch file.`
我正在使用jdk 8和maven 3.3。我的系统路径变量是:
%SystemRoot%\system32;%SystemRoot%;D:\POS\apache-maven-3.3.3-bin\apache-maven-3.3.3\bin;
到目前为止,我理解这不是你的IDE问题。请检查"system32"在PATH环境变量中是否被正确定义。
Path = %SystemRoot%\system32;
你可以通过以下任何一种方式来使其工作
c:\windows\system32
而不是 %SystemRoot%\system32
cmd.exe
command
而不是 cmd.exe
Path
的变量已经被设置了,但我创建了一个新变量PATH
,所以它替换了Path
变量,因此Path = %SystemRoot%\system32;
被删除了。%JAVA_HOME%\bin;%M2_HOME%\bin;%SystemRoot%\system32;