On Sep 17, 2009, at 10:39 PM, Tom Eyckmans wrote:
2009/9/17 Steve Appling <[email protected]>
Tom Eyckmans wrote:
ok, I'm trying to setup a new project for the gradle/gradle github
stuff and I'm running into a class not found exception on
org.gradle.BootstrapMain since snapshot 0.8-20090829161512+1000.
output:
/*
*************************************** 0.8-20090829161512+1000
***********************************************************************************
*/
Unzipping /home/teyckmans/.gradle/wrapper/dists/
gradle-0.8-20090829161512+1000-bin.zip to /home/teyckmans/.gradle/
wrapper/dists
Exception in thread "main" 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 java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at org.gradle.wrapper.BootstrapMainStarter.start
(BootstrapMainStarter.java:36)
at org.gradle.wrapper.Wrapper.execute(Wrapper.java:58)
at org.gradle.wrapper.WrapperMain.main(WrapperMain.java:41)
teyckm...@workbench:~/lib/org/gradle/work/github/gradle/gradle$
I checked and this is the first snapshot that contains the gradle-
core jar. Not sure yet what is going wrong, hunt goes on...
It's interesting that this is the same problem some one was
encountering when trying to run the GUI, but it worked on other
machines. Please post if you find out what is going on.
I checked out the Wrapper task code and if I read it correctly the
gradle-wrapper.jar of the (old) gradle version is copied into the
project directory, because we migrated to a multiproject build the
gradle jar file is renamed to gradle-core and the (old) gradle-
wrapper.jar looks for a gradle-XX.jar file that doesn't exist
anymore. To prevent this a snapshot of the wrapper jar should be
downloaded instead of copied from the old gradle home, because the
wrapper code looks ok to me in trunk.
I still don't understand why your are running into this error. The
BootstrapMainStarter of the wrapper.jar of gradle master looks for
gradle-core-..., which is contained in the wrapper distribution
specified in the gradle.properties.
You can run the wrapper like: export GRADLE_OPTS="-
Dgradle.bootstrap.debug=true" && ./gradlew clean
That will give you some debug output.
- Hans
--
Hans Dockter
Gradle Project Manager
http://www.gradle.org