日期:2014-05-18  浏览次数:20677 次

关于ant的设置
按照我看的资料来说,ant的环境设置都是很简单的,结果ant之后报错了~
windows环境,cmd下:

D:\>ant
Buildfile:build.xml

BUILD FAILED
D:\build.xml:3: The following error occurred while executing this lint:
jar:file:/D:/apache-ant-1.8.4/lib/ant.jar!/org/apache/tools/ant/antlib.xml:37:
Could not create task or type of type:componentdef.

Ant could not find the task or a class this task relies upon.

................
请问有知道这个问题怎么解决的不~?非常感谢
ps:图上传不了,只有手打了,见谅
------解决方案--------------------
引用:
Quote: 引用:

你看path里面的是%ant_home%\bin 还是完成路径呢,如果是完整路径,就要每次跟着修改了。如果还不行,就修改完环境变量,重启下电脑。

是%ant_home%\bin 这种的,所以才觉得很奇怪,找了好多个地方,都没解决~囧~多谢
重启后还是一样错误嘛,那我就只能了,公司没有外网,只能上技术网,下班回家搜搜去。