Gradle Eclipse集成

4

我正在使用 Eclipse 4.2 发行版,并已经从 SpringSource 安装了 Gradle Eclipse 集成插件。

当我尝试使用向导创建一个快速的Java项目时,我会遇到以下错误:

Unable to start the daemon process.
This problem might be caused by incorrect configuration of the daemon.
For example, an unrecognized jvm option is used.
Please refer to the user guide chapter on the daemon at C:\devtools\gradle-1.4\docs\userguide\gradle_daemon.html
Please read below process output to find out more:
-----------------------
Error occurred during initialization of VM
Could not reserve enough space for object heap
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

Could not fetch model of type 'HierarchicalEclipseProject' using Gradle installation 'C:\devtools\gradle-1.4'.

当我在命令行中运行gradle build时一切都很好。

有任何想法如何让它工作?

谢谢

1个回答

5

既然你已经可以在命令行中成功运行gradle,那么你就需要尝试在eclipse插件中使用这个gradle。

偏好设置 -> Gradle -> Gradle发布版 -> 文件夹设为你自己的可以运行的gradle发布版。


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接