5/01/2011

Task cannot continue because ECJ is not installed.

If you ever encounter this while building a liferay portlet in eclipse:

BUILD FAILED


...plugins-sdk\build-common.xml:88: .


Task cannot continue because ECJ is not installed.
ECJ was automatically installed. Please rerun your task.



Then you should just add the jar "ecj.jar" to the ant classpath in eclipse.
To do so click on "window -> preferences -> ant -> Runtime".




Select "Ant Home Entries" and add the jar. You will either find it in your plugins-sdk or in your ant directory on your harddrive.




If you like this tutorial it would be very nice, if you could click on some of the google ads you see on the right side. It helps me run this block and motivates me ;)

If you have any questions, feel free to leave a comment.