掲示板
Can't run Ant on ext environment from within Eclipse
16年前 に Joel Kozikowski によって更新されました。
Can't run Ant on ext environment from within Eclipse
Expert 投稿: 405 参加年月日: 06/06/28 最新の投稿
Got another one:
Just tried to build my extension environment from within Eclipse. I ran the "clean" target, and got the message:
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?
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?
16年前 に Alexander Chow によって更新されました。
RE: Can't run Ant on ext environment from within Eclipse
Liferay Master 投稿: 518 参加年月日: 05/07/20 最新の投稿
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.
16年前 に Neil Griffin によって更新されました。
RE: Can't run Ant on ext environment from within Eclipse
Liferay Legend 投稿: 2655 参加年月日: 05/07/27 最新の投稿
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.
16年前 に Michael Young によって更新されました。
RE: Can't run Ant on ext environment from within Eclipse
Liferay Master 投稿: 846 参加年月日: 04/08/05 最新の投稿
Looks like we made the default "modern" for the source code but forgot to update that in the ext build files.
16年前 に Michael Young によって更新されました。
RE: Can't run Ant on ext environment from within Eclipse
Liferay Master 投稿: 846 参加年月日: 04/08/05 最新の投稿
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.
16年前 に Joel Kozikowski によって更新されました。
RE: Can't run Ant on ext environment from within Eclipse
Expert 投稿: 405 参加年月日: 06/06/28 最新の投稿
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.
13年前 に Borxa Varela Bouzas によって更新されました。
RE: Can't run Ant on ext environment from within Eclipse
Junior Member 投稿: 69 参加年月日: 06/12/26 最新の投稿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".
9年前 に Kushal Jayswal によって更新されました。
RE: Can't run Ant on ext environment from within Eclipse
New Member 投稿: 18 参加年月日: 12/11/19 最新の投稿
Hi Joel,
I was facing the same issue. Below are some steps to fix up the life .
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)
I was facing the same issue. Below are some steps to fix up the life .
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)