--- On Wed, 9/16/09, Tomek Kaczanowski <[email protected]> wrote:
> From: Tomek Kaczanowski <[email protected]> > Subject: Re: [gradle-dev] GUI > To: [email protected] > Date: Wednesday, September 16, 2009, 8:02 PM > Hi Steve, > > I am sorry to report, that my first try on GUI was rather > unsuccessful. :( That's unfortunate. The first issue as you guessed has to do with file permissions. The shell script isn't marked as executable when gradlew expands gradle into your home directory. Its marked as executable in the zip file it downloads, but the unzip process is not preserving it. > > I did the following: > a) got the latest version of gradle source from git > b) ./gradlew - everything ok > c) ./gradlew --gui > I got this error (but the UI window has opened): > > 21:53:27.114 [Thread-4] ERROR > o.g.f.i.basic.ProcessLauncherServer - > Starting external process > java.io.IOException: Cannot run program > "/home/tomek/.gradle/wrapper/dists/gradle-0.8-20090916110327+0200/bin/gradle" > (in directory "/home/tomek/work_3rd/gradle"): > java.io.IOException: > error=13, Permission denied > at > java.lang.ProcessBuilder.start(ProcessBuilder.java:459) > at > org.gradle.foundation.ipc.basic.ExternalProcess.start(ExternalProcess.java:107) > at > org.gradle.foundation.ipc.basic.ProcessLauncherServer$1.run(ProcessLauncherServer.java:99) > at > java.lang.Thread.run(Thread.java:619) > Caused by: java.io.IOException: java.io.IOException: > error=13, Permission denied > at > java.lang.UNIXProcess.<init>(UNIXProcess.java:148) > at > java.lang.ProcessImpl.start(ProcessImpl.java:65) > at > java.lang.ProcessBuilder.start(ProcessBuilder.java:452) > ... 3 common frames omitted > > So I cd to /home/tomek/.gradle/wrapper/dists > chmod -R 755 * > > tried once again > ./gradlew --gui > > no error this time on the stdout, but in the UI window, > there is a > message like this: > > Completed with errors > and > "Failed to connect to gradle process for command '-t'" > > If I click "Refresh" (i click every button possible > randomly...) I > got "error" in the upper window, and in the lower part I > get: > Failed to connect to gradle process for command '-t' > Exception in thread "main" java.lang.NoClassDefFoundError: > org/gradle/BootstrapMain > Caused by: java.lang.ClassNotFoundException: > org.gradle.BootstrapMain > at > java.net.URLClassLoader$1.run(URLClassLoader.java:200) > at > java.security.AccessController.doPrivileged(Native Method) > at > java.net.URLClassLoader.findClass(URLClassLoader.java:188) > at > java.lang.ClassLoader.loadClass(ClassLoader.java:307) > at > sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) > at > java.lang.ClassLoader.loadClass(ClassLoader.java:252) > at > java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320) > > Hope it helps in the GUI development. > This sounds like a something is missing. Can you do this: Go to this directory /home/tomek/.gradle/wrapper/dists/gradle-0.8-20090916110327+0200 and run ./bin/gradle --gui Does that yield the same class loader error? Can you also make an explodedDist of gradle, navigate to [gradle]/build/distributions/exploded and run the above command. Does that yield the class loader error? > My environment: Kubuntu 9.04, > ------------------------------------------------------------ > Gradle 0.8-20090916110327+0200 > ------------------------------------------------------------ > > Gradle buildtime: Wednesday, September 16, 2009 11:03:27 AM > CEST > Groovy: 1.6.4 > Ant: Apache Ant version 1.7.0 compiled on December 13 2006 > Ivy: 2.1.0-rc2 > Java: 1.6.0_14 > JVM: 14.0-b16 > JVM Vendor: Sun Microsystems Inc. > OS Name: Linux > > -- > best regards > Tomek Kaczanowski > http://kaczanowscy.pl/tomek > > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email > > > Mike Automated Logic Research Team --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
