Start gradle.bat from an UNC path in windows

(Baiyan Huang) #1

Hi, all,

When I start gradle.bat in windows using a UNC path, there is an error as below: > $ \UNCPath\gradle.bat --help java.lang.IllegalArgumentException: URI has an authority component


at org.gradle.api.internal.classpath.EffectiveClassPath.findAvailableClasspathFiles(

at org.gradle.api.internal.classpath.EffectiveClassPath.(

at org.gradle.api.internal.classpath.DefaultModuleRegistry.(

at org.gradle.api.internal.classpath.DefaultModuleRegistry.(

at org.gradle.launcher.bootstrap.ProcessBootstrap.runNoExit(


at org.gradle.launcher.GradleMain.main(

It does works well when I access it from a mapped driver.

The problem is we put gradle.bat on a shared network location and we don’t expect users to always do a subst themselves first. is there a way to make gradle work under a UNC path?


(Peter Niederwieser) #2

Filed as GRADLE-2941.