Hi;
i imported the source code into IDEA IDE and wants to run gradle build
der through IDE using build.gradle.I m new to gradle and IDEA too.when
i try to run this gradle script through IDE i get class not found
exceptions regarding gradle.
In finding remedy for this i downloaded gradle and has given
"gradle_directory"/bin as gradle classpath.but still i m getting same
exceptions.
can someone tell me wat wrong i m doing in setting gradle in IDE.
I had the same problem. I solved it under linux using a simple sed
script. First you need to perform a "./gradlew build" so that libraries
get downloaded. Then open a terminal at the root of the project and enter :
Hi;
i imported the source code into IDEA IDE and wants to run gradle build
der through IDE using build.gradle.I m new to gradle and IDEA too.when
i try to run this gradle script through IDE i get class not found
exceptions regarding gradle.
In finding remedy for this i downloaded gradle and has given
"gradle_directory"/bin as gradle classpath.but still i m getting same
exceptions.
can someone tell me wat wrong i m doing in setting gradle in IDE.
I had the same problem. I solved it under linux using a simple sed script.
First you need to perform a "./gradlew build" so that libraries get
downloaded. Then open a terminal at the root of the project and enter :
cd .idea
for f in ls libraries; do sed -i "s/USER_HOME$/.gradle/**GRADLE_REPOSITORY$/g"
libraries/$f; done
Then reopen your project.
Cédric
Le 13/07/2011 13:03, arien a écrit :
Hi;
i imported the source code into IDEA IDE and wants to run gradle build
der through IDE using build.gradle.I m new to gradle and IDEA too.when
i try to run this gradle script through IDE i get class not found
exceptions regarding gradle.
In finding remedy for this i downloaded gradle and has given
"gradle_directory"/bin as gradle classpath.but still i m getting same
exceptions.
can someone tell me wat wrong i m doing in setting gradle in IDE.
The tutorial looks fine to me, however the committed project files don't
use GRADLE_REPOSITORY path variable, but $USER_HOME$/.gradle instead.
That's why I had to perform some in place replacements.
Hi;
I tried ./gradle build but after some time (after half an hour) it
shows tests built successfully and gets stuck..after (ctrl+c) when
'ls' done;libraries folder doesnt show up.so cant perform sed action.
The tutorial looks fine to me, however the committed project files don't
use GRADLE_REPOSITORY path variable, but $USER_HOME$/.gradle instead.
That's why I had to perform some in place replaceme
/usr/lib/jvm/java-6-openjdk/bin/java -Dgradle.home=/home/fstl/
gradle-1.0-milestone-3/bin -Dtools.jar=/usr/lib/jvm/java-6-openjdk/lib/
tools.jar -Didea.launcher.port=7532 -Didea.launcher.bin.path=/home/
fstl/IntellJIDE/idea-IC-107.322/bin -Dfile.encoding=UTF-8 -classpath /
home/fstl/IntellJIDE/idea-IC-107.322/lib/idea_rt.jar
com.intellij.rt.execution.application.AppMain
org.gradle.launcher.GradleMain --build-file /home/fstl/newElastic1/
elasticsearch/build.gradle
Exception in thread "main" java.lang.ClassNotFoundException:
org.gradle.launcher.GradleMain
at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:186)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:
I had the same problem. I solved it under linux using a simple sed
script. First you need to perform a "./gradlew build" so that
libraries get downloaded. Then open a terminal at the root of the
project and enter :
# cd .idea
# for f in `ls libraries`; do sed -i
"s/USER_HOME\$\/.gradle/GRADLE_REPOSITORY\$/g" libraries/$f; done
Then reopen your project.
Cédric
Le 13/07/2011 13:03, arien a écrit :
Hi;
i imported the source code into IDEA IDE and wants to run
gradle build
der through IDE using build.gradle.I m new to gradle and IDEA
too.when
i try to run this gradle script through IDE i get class not found
exceptions regarding gradle.
In finding remedy for this i downloaded gradle and has given
"gradle_directory"/bin as gradle classpath.but still i m
getting same
exceptions.
can someone tell me wat wrong i m doing in setting gradle in IDE.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.