I recently got the following error when I tried to run ant on a fresh installed Ubuntu 12.04.1 LTS machine:
Unable to locate tools.jar. Expected to find it in /usr/lib/jvm/java-6-openjdk-amd64/lib/tools.jar
The solution was to install the openjdk-6-jdk package as follows:
#sudo apt-get install openjdk-6-jdk |
Hope this helps somebody…