I use 1.7.1 version of Ant for buid KK, and faced with "javac.exe CreateProcess error=87" error while execute compile task. Problem solved by changing property fork="yes" to fork="false" of this task.
PS Also let more memory to your Ant for succeful compile