build.xmlにjavacを正しく書いたのにUnable to find a javac compilerが出てコンパイルしてくれない

 環境:JDK1.4.2_07,Eclipse 3.0.1,Ant1.6.2(付属)
 Eclipse上でbuild.xmlを書いて,Antからコンパイルさせようとすると

BUILD FAILED: C:\Eclipse\workspace\SampleProject\build.xml:48: 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

 とかいわれるので,,eclipsewiki.net - このウェブサイトは販売用です! -&nbspeclipsewiki リソースおよび情報「Ecipse/JDTに含まれるコンパイラを使う場合」を参考に
 「ウィンドウ」->「設定」->「Ant」->「ランタイム」->「プロパティ」タブ->「プロパティの追加」ボタン
 の設定画面で

名前
build.compiler
org.eclipse.jdt.core.JDTCompilerAdapter

 を設定しましたが,下記のとおり,みつからんとおこられる.

BUILD FAILED: C:\Eclipse\workspace\SampleProject\build.xml:48: Compiler Adapter 'org.eclipse.jdt.core.JDTCompilerAdapter' can't be found.
Total time: 13 seconds

 しかたないので「J2SEのコンパイラを使う場合」のほうを採用.
 「ウィンドウ」->「設定」->「Ant」->「クラスパス」タブ->「Antホーム」項目->「外部JARの追加」ボタン
 で,
 $JAVA_HOME/lib/tools.jar
 を指定したらうまくいきました.