title: Installing Groovy
body: <p>Recently I downloaded Groovy-2.3.6 and try to install it on Linux system. I follow the instruction from <a href="http://groovy-lang.org/install.html" rel="nofollow noreferrer">http://groovy-lang.org/install.html</a>. I set my GROOVY_HOME variable.</p>
  
  <pre><code>export GROOVY_HOME=/home/work/Software/groovy-2.3.6
  </code></pre>
  
  <p>Then I set my environment path variable to the Groovy bin folder</p>
  
  <pre><code>  export PATH=$PATH:/home/work/Software/groovy-2.3.6/bin
  </code></pre>
  
  <p>The JAVA_HOME variable is already created.</p>
  
  <p>Now when I'm trying to run any command of Groovy, It generate following error</p>
  
  <pre><code>Exception in thread "main" java.lang.NoClassDefFoundError: org/codehaus/groo/tool/GroovyStarter
  Caused by: java.lang.ClassNotFoundException: org.codehaus.groovy.tools.GroovyStarter
        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.codehaus.groovy.tools.GroovyStarter.  Program will exit.
  </code></pre>
  
  <p>I was going through some website to solve that problem. I find that if I set wrong path to GROOVY_HOME then it can happen. I can't figure out what should be the right path for that variable. Can anyone help me with this please. 
   Thanks</p>