I also encountered the same problem with Ant and Eclipse, but I have a temporary solution: I use Ant in the terminal (after sudo apt-get install ant).
I also encountered the same problem with Ant and Eclipse, but I have a temporary solution: I use Ant in the terminal (after sudo apt-get install ant).