Skip to content
Advertisement

Specify the GRADLE_USER_HOME in Windows 7

How do I configure the GRADLE_USER_HOME option? My Windows username contains a space(C:UsersBaz Foo) and I think that the build fails because of this.

E:workspace-sts-3.0.0.RELEASEagwebag-clientag-sharedbuildclassesmain
error: Class com.acme.client.conn.rmi.SessionRMIImpl not found.
error: Class Foo.gradlecachesartifacts-13filestorexercesxercesImpl2.1
0.0jar9161654d2afe7f9063455f02ccca8e4ec2787222xercesImpl-2.10.0.jar not found
.
error: Class Foo.gradlecachesartifacts-13filestorexml-apisxml-apis1.4
.01jar3789d9fada2d3d458c4ba2de349d48780f381ee3xml-apis-1.4.01.jar;C:UsersBaz
not found.
error: Class Foo.gradlecachesartifacts-13filestoreprovidedjbpm3.0.4j
arf2a9f8f32e59b335e069b5444f6c36a30abf0845jbpm-3.0.4.jar;C:UsersBaz not fou
nd.
error: Class Foo.gradlecachesartifacts-13filestorelog4jlog4j1.2.16bu
ndle7999a63bfccbc7c247a9aea10d83d4272bd492c6log4j-1.2.16.jar;C:UsersBaz not
found.
5 errors ...

I have added an environment variable GRADLE_USER_HOME and set it to C:UsersBaz Foo.gradle and tried also with --gradle-user-home="C:UsersBaz Foo.gradle" but none of them work.

Advertisement

Answer

I have explicitly defined GRADLE_USER_HOME to point to a path without spaces(for example: E:gradle-repository). The gradle-repository folder contains the initialization script(init.gradle file, see Gradle initialization scripts).

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement