任务无法继续,因为未安装ECJ - 在Eclipse ant中

Suz*_*ioc 5 eclipse ant install

我有一些蚂蚁任务在第一次运行时说

Task cannot continue because ECJ is not installed.

ECJ was automatically installed. Please rerun your task.
Run Code Online (Sandbox Code Playgroud)

当使用独立运行时Ant,它第二次运行正常.我不知道是什么ECJ,但显然它是独立安装的Ant.

Eclipse Ant 运行时相反,此消息持续存在,即ECJ未安装Eclipse' Ant.

如何解决这个问题?

Cee*_*man 13

这个页面帮助了我:

  1. 在Eclipse中,转到Window-> Preferences-> Ant-> Runtime
  2. 选择"Ant Home Entries(Default)"
  3. 添加外部JAR ... ecj.jar.可在Liferay插件SDKlib文件夹中找到.
  4. Ant现在应该可以从你的编译中编译 build.xml