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在命令行中运行时,一切都很好。

有什么想法可以让这个工作吗?

干杯

4

1 回答 1

5

由于您可以在命令行中成功运行 gradle,因此您需要尝试在 eclipse 插件中使用该 gradle。

设置Preference -> Gradle -> Gradle Distribution -> Folder为您自己运行良好的 gradle 发行版。

于 2013-03-19T08:58:45.837 回答