windows->Ant->Runtime->Ant Home Entries应当设置为自己安装的ant
如果使用Myeclipse自带的Ant则需在相应位置的global entries 设置到对应的工程jdk版本的 java_home/lib/tools.jar.