蚂蚁不被识别为内部或外部的命令 [英] ant is not recognized as an internal or external command

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

问题描述


  • 我运行Windows XP专业版5.1的Service Pack 3

  • 我已经下载了JDK 1.6.0_24-B07,并测试了它的工作原理

  • 我下载Apache Ant的.zip文件,并将其安装到C:\\蚂蚁

  • 我已经设置了路径;%ANT_HOME%\\ bin中

  • 我已经设置了用户变量名ANT_HOME

  • 我的用户变量值设置为C:\\蚂蚁\\ Apache的ANT-1.8.2

我已经试过了8.3格式,我已经尝试了一切,我不能让它蚂蚁工作。有什么建议?

I have tried the 8.3 format, I have tried everything and I can't get it ant to work. Any advice?

在此先感谢

推荐答案

我也是刚刚才知道,不应该有分号,我们指定路径之间的任何空间。我一直在打破我的头到底如何会出现这种情况,尽管确保一切是正确的,让我说明这更好的方式:

I just got to know that there should not be any space between the semicolon and the path we specify. I have been breaking my head how the hell does this happen despite making sure everything is right, let me illustrate this in better way:

ANT_HOME = A:\\ Apache的ANT-1.8.2

ant_home=A:\apache-ant-1.8.2

路径= someotherpath1; someotherpath2; A:\\ Apache的ANT-1.8.2 \\ BIN

path=someotherpath1;someotherpath2;A:\apache-ant-1.8.2\bin

确认有没有空格分号的路径名

和我们认为机器是完美的!。这听起来很愚蠢,我知道,但它为我工作。

And we think machines are perfect!!. This sounds stupid I know but it worked for me.

干杯!

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

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆