Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Joel Kozikowski
Can't run Ant on ext environment from within Eclipse
January 24, 2008 3:21 PM
Answer

Joel Kozikowski

Rank: Expert

Posts: 405

Join Date: June 27, 2006

Recent Posts

Got another one:

Just tried to build my extension environment from within Eclipse. I ran the "clean" target, and got the message:

Task cannot continue because ECJ is not installed.

ECJ was automatically installed. Please rerun your task.


Of course, I re-ran the task again, and got the same message (Eclipse 3.2).

I went out to command line, and was able to execute the clean target. I'm not yet able to execute the "deploy" target due to build errors (looks like some changes to the API that broke my code, so I'm working on that next.

ECJ == what?

Eclipse Compiler for Java?
Alexander Chow
RE: Can't run Ant on ext environment from within Eclipse
January 24, 2008 3:43 PM
Answer

Alexander Chow

LIFERAY STAFF

Rank: Expert

Posts: 496

Join Date: July 19, 2005

Recent Posts

Good guess. Yah, Jikes development has died down and ECJ (Eclipse's compiler) is becoming a popular alternative to javac that produces optimized bytecode that is fully JDK 1.5 compliant (unlike Jikes 1.22). See http://support.liferay.com/browse/LEP-4273 and http://download.eclipse.org/eclipse/downloads/drops/R-3.3.1.1-200710231652/index.php#JDTCORE.
Neil Griffin
RE: Can't run Ant on ext environment from within Eclipse
January 24, 2008 3:51 PM
Answer

Neil Griffin

LIFERAY STAFF

Rank: Liferay Master

Posts: 715

Join Date: July 26, 2005

Recent Posts

Joel, the Eclipse ejc.jar file needs to be copied into your $ANT_HOME/lib folder in order to use EJC with an external Ant distribution.
Michael Young
RE: Can't run Ant on ext environment from within Eclipse
January 24, 2008 4:00 PM
Answer

Michael Young

LIFERAY STAFF

Rank: Liferay Master

Posts: 833

Join Date: August 4, 2004

Recent Posts

Looks like we made the default "modern" for the source code but forgot to update that in the ext build files.
Michael Young
RE: Can't run Ant on ext environment from within Eclipse
January 24, 2008 4:02 PM
Answer

Michael Young

LIFERAY STAFF

Rank: Liferay Master

Posts: 833

Join Date: August 4, 2004

Recent Posts

To fix this in eclipse, however, you need to edit the eclipse ant runtime preferences and add the ecj.jar file to the classpath (it should have been copied to your $ANT_HOME/lib directory.
Joel Kozikowski
RE: Can't run Ant on ext environment from within Eclipse
February 1, 2008 12:31 PM
Answer

Joel Kozikowski

Rank: Expert

Posts: 405

Join Date: June 27, 2006

Recent Posts

Similar problem occurred, and I goofed and started another thread rather than appending it here. This post is for the cross reference in case others have this problem.
Borxa Varela Bouzas
RE: Can't run Ant on ext environment from within Eclipse
December 21, 2010 6:35 AM
Answer

Borxa Varela Bouzas

Rank: Junior Member

Posts: 58

Join Date: December 26, 2006

Recent Posts

Joel Kozikowski:
Got another one:

Just tried to build my extension environment from within Eclipse. I ran the "clean" target, and got the message:

Task cannot continue because ECJ is not installed.

ECJ was automatically installed. Please rerun your task.


Of course, I re-ran the task again, and got the same message (Eclipse 3.2).


Are you using JRE from Eclipse core?

For check this, you need to select the build.xml context menu "Run As -> External Tools Configuration" and go to the JRE tab, there check "Run in the same JRE as the workspace".