Task cannot continue because ECJ is not installed -- in Eclipse ant

ant, eclipse, installation

Solution

This page helped me:

- In Eclipse, Go To Window->Preferences->Ant->Runtime

- Select "Ant Home Entries (Default)"

- Add External JAR... `ecj.jar`. Available in the `lib` folder of the Liferay Plugins SDK.

- Ant should now be able to compile from your `build.xml`

Problem

I have some ant task which says on first run ``` Task cannot continue because ECJ is not installed. ECJ was automatically installed. Please rerun your task. ``` When running with standalone `Ant`, it runs ok second time. I don't know what is `ECJ`, but apparently it is installing in standalone `Ant`. Contrary when running with `Eclipse` `An`t this message persisting, i.e. `ECJ` is not installing into `Eclipse'` `Ant`. How to fix the situation?

Original source