I am new to gradle and I am getting started with the Installing Gradle guide.
When I follow the guide's 'Environment variables' step, I set GRADLE_HOME as /path/to/gradle and add /path/to/gradle/bin to the PATH in ~/.bashrc.
And I run gradle -v in the command line, it gives me this error:
Exception in thread "main" 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:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
Could not find the main class: org.gradle.launcher.GradleMain. Program will exit.
it looks like the class path is missing so I set the CLASSPATH variable to '.:path/to/gradle/lib/gradle-launcher-1.2.jar' and login again. It is still not working...
Any hints
Thx in Advance :)