You need to check a few things 1) Is the java bin directory path set correctly? (To verify this, you need to write the javac command on the command line (cmd) and you will get a list of instructions in the cmd console)
2) Open the eclipse and go to Window-> Preferences-> Ant β Runtime
on the Classpath tab, see Ant Home entries pointing to the wrong directory (it still points to the last directory, this directory does not exist), you need to do this change Ant Home pointer to the correct directory to indicate Ant Home button - select Ant Home directory, for example, I use Eclipse 3.3.1, Ant Home is the Eclipse org plugin directory. apache.ant_1. 7.0.v200706080842.
source share