Ant compiling gives error [BUILD FAILED]

you should try installing it directly: