Unsolved problem about ant(Solved now!)

来源:互联网 发布:淘宝宝贝卖点有什么用 编辑:程序博客网 时间:2024/04/29 00:48

 I follow the operations in the book but I failed to start ant.

 

Operations:

1) Write a simple java program named MyDate as follows:

 

2) Create a XML file and write follows words in it:

3) Open the cmd window and type the command as follows:

ant

Now the directory of the project is as follows:

directory

The MyDate.java is under the folder src

4) Start use ant

startAnt

 

Tips: I don't know why would it happen and I've serched many materials but still can't find the solution.

 

I've got the solutions!!!!! 8.18

modify the build.xml as follows:

 

The lesson I've got here is that: Don't always believe the book. Just go to the offical site to get the solution.

I got a example from the site and modified it and then I can run ant!

So cool!

原创粉丝点击