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

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

问题描述

  • 我运行的是带有 Service Pack 3 的 Windows XP Professional 5.1 版
  • 我已经下载了 JDK 1.6.0_24-b07 并测试了它的工作
  • 我下载了 apache ant .zip 并将其安装到 C:\ant
  • 我已将路径设置为 ;%ANT_HOME%\bin
  • 我已将用户变量名称设置为 ANT_HOME
  • 我已将用户变量值设置为 C:\ant\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

path=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.

干杯!!!

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

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