Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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 Ant this message persisting, i.e. ECJ is not installing into Eclipse' Ant.

How to fix the situation?

like image 236
Suzan Cioc Avatar asked Apr 16 '13 21:04

Suzan Cioc


1 Answers

This page helped me:

  1. In Eclipse, Go To Window->Preferences->Ant->Runtime
  2. Select "Ant Home Entries (Default)"
  3. Add External JAR... ecj.jar. Available in the lib folder of the Liferay Plugins SDK.
  4. Ant should now be able to compile from your build.xml
like image 89
Cees Timmerman Avatar answered Nov 15 '22 05:11

Cees Timmerman