Migrated. Originally posted: 2008-04-02
If you have ant installed, and it runs at all, it means you have java installed. If, however, you are on a Debian-based system, you may still get the error that says “tools.jar” is missing.
It turns out this means you need some more ant stuff installed.
Try the following:
sudo apt-get install java-gcj-compat-dev
This will probably install several packages that it requires. One of them provides tools.jar, or some reasonable facsimile. It let me run Ant without errors anyway.