本文介绍了“蚁族”不被识别为一个内部或外部命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有同样的问题,因为该用户:

I have the same issue as this user: ant - not recognized as an internal

但遗憾的是没有解决方案,已经在该职位或其他任何为我工作。我也看了其他的命令无法识别并专门增加一个路径变量。我使用的程序如下:

however unfortunately none of the solutions have worked for me in that post or any other. I've also looked at other commands not recognized and specifically adding a path variable. The procedure I am using is as follows:

Extract to a desired installation directory, e.g. C:\apache-ant
Create an ANT_HOME environment variable`

Open System Properties -> Advanced -> Environment Variables
Create a new system variable
    Variable name: ANT_HOME
    Variable value: C:\apache-ant 

Add %ANT_HOME%\bin directory to the PATH system variable

Open System Properties -> Advanced -> Environment Variables
Under system variables, select PATH and append ;%ANT_HOME%\bin
    e.g. %SystemRoot%\system32;%SystemRoot%;%JAVA_HOME%\bin;%ANT_HOME%\bin

Verify that ANT is installed.

Open a new command window and type:
C:\>ant -v`

在我的情况下,变量值 C:\\ Apache的蚂蚁\\ Apache的ANT-1.8.2

In my case the Variable value is C:\apache-ant\apache-ant-1.8.2.

我的确切路径变量<$c$c>%SystemRoot%\\system32;%SystemRoot%;%JAVA_HOME%\\bin;%SystemRoot%\\System32\\Wbem;%SYSTEMROOT%\\System32\\WindowsPowerShell\\v1.0\\;%JAVA_HOME%\\bin;%ANT_HOME%\\bin它没有分号之间的任何空间。

My exact path variable is %SystemRoot%\system32;%SystemRoot%;%JAVA_HOME%\bin;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;%JAVA_HOME%\bin;%ANT_HOME%\bin which doesn't have any spaces between semicolons.

不过测试蚂蚁安装不起作用,下面的图片是我遇到:

However testing the ant installation does not work, the picture below is what I'm experiencing:

我曾尝试重新启动多次都无济于事。我已经江郎才尽,因此,如果任何人有任何的任何信息将是有益的。谢谢!

I have tried restarting on numerous occasions to no avail. I have run out of ideas, so if anyone has any any information would be helpful. Thanks!

目录的发布结果:

推荐答案

ANT_HOME 未得到解决。更改%ANT_HOME%\\ bin中在Path系统环境变量 C:\\ Apache的蚂蚁\\ Apache的ANT-1.8.2 \\ BIN

ANT_HOME is not being resolved. Change %ANT_HOME%\bin in the Path system environment variable to c:\apache-ant\apache-ant-1.8.2\bin.

这篇关于“蚁族”不被识别为一个内部或外部命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-28 09:15