Ant needs tools.jar and unable to find it
Solution 1:
It seems like you can have Java installed in /usr/lib/jvm/java-6-openjdk but only have the JRE, not the JDK. This fixed it for me:
sudo apt-get install openjdk-6-jdk
Solution 2:
Note: On CentOS / RHEL installing java-1.x.0-openjdk
will not be enough. Also install java-1.x.0-openjdk-devel
.