I know this is an old topic, but i had this problem too. Except I had one machine that it would work on and another that it wouldnt.
Eventually i found that the problem wasnt the classpath but the system path, if you make sure that the jdk/bin folder is in the system path then ANT will find the javadoc in eclipse (requires a restart).
Hope this helps.