ANT_HOME设置不当或蚂蚁找不到 [英] ANT_HOME is set incorrectly or ant could not be located

查看:642
本文介绍了ANT_HOME设置不当或蚂蚁找不到的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图打造蚂蚁的一个项目,使用生成文件(build.xml文件)。
虽然ANT_HOME环境变量显然存在,并且设置到ant.bat所在的路径,它始终显示此错误消息。
如何配置正确的Ant编译建立在Windows?

I'm trying to build a project in Ant, using BuildFile (build.xml). Although ANT_HOME environment variable clearly exists and is set to the path where "ant.bat" is located, it always displays this error message. How to configure Ant properly to compile builds in Windows?

感谢

推荐答案

ANT_HOME可能被设置,但是,这并不意味着路径/ bin在PATH,这样的操作系统能够找到它。

ANT_HOME might be set, but that doesn't mean the path to /bin is in your PATH so the OS can find it.

添加ANT_HOME / bin添加到PATH和操作系统将能够找到 ant.bat

Add ANT_HOME/bin to your PATH and the OS will be able to find ant.bat.

这篇关于ANT_HOME设置不当或蚂蚁找不到的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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