ANT エラー javacタスク

Eclipse2.1.1でAnt実行すると、


Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK
というエラーが出る。

→Antの追加のクラスパス・エントリーにtools.jarを入れるとエラーは出なくなる。バグのよう。とりあえず、今はこれで対処。