Liferay Builds with the ECJ Compiler(Tricks for linux).

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

I suffer for above issue. Finally resolve this in ubuntu.

I don't use Eclipse IDE environment, Ubuntu provides ecj compiler separately:

Step 1: sudo apt-get install ecj

Step 2: If you using ant of Ubuntu (sudo apt-get install ant)
You need to link ecj.jar to its directory(If ecj.jar already in /usr/share/ant/lib/ecj.jar then first remove this):
sudo ln -s /usr/share/java/ecj.jar /usr/share/ant/lib/ecj.jar
 

Enjoy...

Comments

Popular posts from this blog

How to run ofbiz as ubuntu Service.

JPA vs Spring JPA vs Spring Data JPA vs Hibernate

Java Array Interview Questions for Entry-Level Developers Part 01