My Eclipse is Indigo Java classic.
I have a java project which has mockito-all as a dependency. pom.xml:
org.mo
In my case I had a JRE installed then added a JDK. ANT seemed to stick with the JRE even though I changed my project to use the JDK.
To fix this I had to do: 1. Select "Run As..." 2. Select the second "Ant build..." option 3. This brings up a panel to allow setting configuration. Choose the "JRE" tab and change the selected JRE to the JDK