Unable to run gradle from CentOS 5.6. Please help


(jim) #1

CentOS 5.6

downloaded and unzip’d to /usr/local/gradle export GRADLE_HOME=/usr/local/gradle/gradle-1.12 export JAVA_HOME=/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.55.x86_64 echo $PATH PATH=/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.55.x86_64/bin:GRADLE_HOME/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin

gradle –version Error: Could not find or load main class org.gradle.launcher.GradleMain

So, what have I missed/messed up?


(jim) #2

ha! Figured it out. From a comment in a request from another site.

which gradle

Found that it was pointing to an old/broken version.

(facepalm)

Removed it (it showed up in path first) and now all is well! Woot!