Luke, Tried with 1.6.41 and have same problem.
I cocked-up the previous debugging and my explanation was slightly wrong. I debugged again and the exception actually occurs in java.net.URLClassLoader line 194 as it cannot find the resource:
String path = name.replace(’.’, ‘/’).concat(".class");
Resource res = ucp.getResource(path, false);
if (res != null) {
try {
return defineClass(name, res, true);
} catch (IOException e) {
throw new ClassNotFoundException(name, e);
}
} else {
throw new ClassNotFoundException(name);
}
In my debugger I can see the ‘name’ variable is:
jarjar.org.gradle.process.internal.launcher.GradleWorkerMain
Is it correct that it should have “jarjar” on the front of it? If you could highlight to me which class pumps out the new java command for the child process then perhaps I can stick a breakpoint there and see what the classpath is?
Cheers, John