Hi,

I want to try the gradle eclipse plugin.

I have gradle-0.9-preview-3 installed, but the plugin automatically loads 0.8.0 as far as I can see.

So if i run a script starting with apply plugin:'java' it complains with

Cause: Could not find method apply() for arguments [{plugin=java}] on root project


 it doesnt change if I set the GRADLE_HOME in the preference dialog to my 0.9 installation and tick "Use specific GRADLE_HOME".

how can I use the plugin in combination with 0.9-xxx ?

then I tried to run my build.gradle by defining it as an external program as described in http://docs.codehaus.org/display/GRADLE/Running+Gradle+from+Eclipse

with

Location: D:\build-tools\releases\gradle-0.9-preview-3\bin\gradle.bat

when I run it it fails with:
java.lang.NoClassDefFoundError: org/gradle/launcher/GradleMain
Caused by: java.lang.ClassNotFoundException: org.gradle.launcher.GradleMain
        at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
Could not find the main class: org.gradle.launcher.GradleMain.  Program will exit.
Exception in thread "main"

using the same location in the console works ....

Can anyone help me with that ?

Thanks
Andreas
-- 

Andreas Jöcker
GiS - Gesellschaft für integrierte Systemplanung mbH
Junkersstr. 2
69469 Weinheim

E-Mail   [email protected]
Telefon +49 6201 503-0
Fax     +49 6201 503-66 

Gesellschaft für integrierte Systemplanung mbH
Geschäftsführer: Eckhard Haffmann, Alfred Gai, Bernd Heselmann
Sitz der Gesellschaft: Zeppelinstr. 11 - 91052 Erlangen
Amtsgericht Fürth/Bayern - Handelsregister-Nr. HRB 3435
--------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email

Reply via email to