Eclipse守护进程启动失败的Gradle Integration [英] Gradle Integration for Eclipse daemon startup failure

查看:505
本文介绍了Eclipse守护进程启动失败的Gradle Integration的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是使用Gradle Integration for Eclipse插件的Eclipse Juno新手。我为什么从命令行和外部工具完美地工作,我感到茫然;但在Eclipse Juno包资源管理器菜单中:gradle任务会不断失败并显示以下堆栈跟踪:



初始化classpath容器时出错
无法启动守护进程。
这个问题可能是由于守护进程配置不正确引起的。
例如,使用无法识别的jvm选项。
请参阅 http:// gradle上的守护程序用户指南一章。 org / docs / 1.5 / userguide / gradle_daemon.html

请阅读以下流程输出以了解更多信息:



java.lang.IllegalArgumentException:URI在java.io.File中具有权限组件
。(File.java:423)
在org.gradle.api.internal.classpath.EffectiveClassPath .findAvailableClasspathFiles(EffectiveClassPath.java:41)
位于org.gradle.api.internal.classpath.EffectiveClassPath。(EffectiveClassPath.java:32)
位于org.gradle.api.internal.classpath.DefaultModuleRegistry。 (DefaultModuleRegistry.java:61)
at org.gradle.api.internal.classpath.DefaultModuleRegistry。(DefaultModuleRegistry.java:55)
at org.gradle.launcher.bootstrap.ProcessBootstrap.runNoExit(ProcessBootstrap。 java:41)
at org.gradle.launcher.bootstrap.ProcessBootstrap.run(ProcessBootstrap.java:32)
at org.gradle.launcher.daemon.bootstrap.GradleDaemon.main(GradleDaemon.java:22)

无法使用Gradle分布获取'EclipseProject'类型的模型' http://services.gradle.org/distributions/gradle-1.5-bin。 。



GRADLE_HOME,GRADLE_USER_HOME,PATH的env变量都已正确设置。从命令行gradle -v返回:




Gradle 1.6



< Gradle编译时间:2013年5月7日星期二上午9:12:14 UTC
Groovy:1.8.6
Ant:Apache Ant(TM)1.8.4版2012年5月22日编译
Ivy:2.2.0
JVM:1.7.0_45(Oracle Corporation 24.45-b08)
操作系统:Windows 7 6.1 amd64

Eclipse版本:



用于Web开发人员的Eclipse Java EE IDE。



版本:Juno Service Release 2



构建ID:20130225-0426



操作系统是amd64平台上的Win7 64,具有4GB系统内存,因此它不是内存问题,并且在Eclipse Juno中获取上述堆栈跟踪时没有运行gradle守护进程。



我已经用尽了所有方法在Web,本站点和我的团队解决问题。我需要一些帮助。

解决方案

Windows 7将user.home设置为UNC路径。
将-Duser.home = x:\添加到Eclipse INI文件中,其中x是本地驱动器名称。
这应该可以解决您的问题


I am new to Eclipse Juno using the Gradle Integration for Eclipse plugin. I am at a loss why gradle works perfectly from the command line and as an external tool; but in Eclipse Juno Package Explorer menu: gradle task it fails constantly with the following stack trace:

Error while initializing classpath container 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 http://gradle.org/docs/1.5/userguide/gradle_daemon.html

Please read below process output to find out more:

java.lang.IllegalArgumentException: URI has an authority component at java.io.File.(File.java:423) at org.gradle.api.internal.classpath.EffectiveClassPath.findAvailableClasspathFiles(EffectiveClassPath.java:41) at org.gradle.api.internal.classpath.EffectiveClassPath.(EffectiveClassPath.java:32) at org.gradle.api.internal.classpath.DefaultModuleRegistry.(DefaultModuleRegistry.java:61) at org.gradle.api.internal.classpath.DefaultModuleRegistry.(DefaultModuleRegistry.java:55) at org.gradle.launcher.bootstrap.ProcessBootstrap.runNoExit(ProcessBootstrap.java:41) at org.gradle.launcher.bootstrap.ProcessBootstrap.run(ProcessBootstrap.java:32) at org.gradle.launcher.daemon.bootstrap.GradleDaemon.main(GradleDaemon.java:22)

Could not fetch model of type 'EclipseProject' using Gradle distribution 'http://services.gradle.org/distributions/gradle-1.5-bin.zip'.

The env variables for GRADLE_HOME, GRADLE_USER_HOME, PATH are all setup correctly. From the command line gradle -v returns:


Gradle 1.6

Gradle build time: Tuesday, May 7, 2013 9:12:14 AM UTC Groovy: 1.8.6 Ant: Apache Ant(TM) version 1.8.4 compiled on May 22 2012 Ivy: 2.2.0 JVM: 1.7.0_45 (Oracle Corporation 24.45-b08) OS: Windows 7 6.1 amd64

Eclipse version:

Eclipse Java EE IDE for Web Developers.

Version: Juno Service Release 2

Build id: 20130225-0426

OS is Win7 64 on amd64 platform with 4GB of system memory so it show not be a memory issue and there are no gradle daemons running when I get the above stack trace in Eclipse Juno.

I have exhausted all means on the web, this site, and my team to resolve the issue. I need some help please.

解决方案

Windows 7 sets the user.home as a UNC path. Add -Duser.home=x:\ to your Eclipse INI file where "x" is a local drive name. That should solve your problem

这篇关于Eclipse守护进程启动失败的Gradle Integration的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆