title: NoClassDefFoundError...org/apache/commons/cli/CommandLineParser when Run As, Groovy Script
body: <p>I just installed Eclipse KEPLER and am trying to bring all my projects back in from github.  The projects are all gradle projects so my procedure is pretty much...</p>
  
  <ol>
  <li>Clone the git repo</li>
  <li>gradle eclipse</li>
  <li>Import Project into Eclipse</li>
  </ol>
  
  <p>Everything seems to be fine, except I can't "Run As, Groovy Script" the scripts within the project.  When I try, the console spews...</p>
  
  <pre><code>java.lang.NoClassDefFoundError: org/apache/commons/cli/CommandLineParser
      at java.lang.Class.getDeclaredMethods0(Native Method)
      at java.lang.Class.privateGetDeclaredMethods(Class.java:2521)
      at java.lang.Class.getMethod0(Class.java:2764)
      at java.lang.Class.getMethod(Class.java:1653)
      at org.codehaus.groovy.tools.GroovyStarter.rootLoader(GroovyStarter.java:99)
      at org.codehaus.groovy.tools.GroovyStarter.main(GroovyStarter.java:130)
  Caused by: java.lang.ClassNotFoundException: org.apache.commons.cli.CommandLineParser
      at org.codehaus.groovy.tools.RootLoader.findClass(RootLoader.java:156)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
      at org.codehaus.groovy.tools.RootLoader.loadClass(RootLoader.java:128)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
      ... 6 more
  </code></pre>
  
  <p>.  Interestingly enough, I can "Run As, Java Application" without issue.  Its definitely a Groovy project as it has the G in the project icon.  What does the stacktrace mean and how do I overcome it?</p>
  
  <p>The repository that is causing my issue is at <a href="https://github.com/robertkuhar/StackOverflow" rel="nofollow">https://github.com/robertkuhar/StackOverflow</a></p>
  
  <p>My gradle is 1.11 on groovy 1.8.6 in eclipse kepler with the Groovy-Eclipse plug-in Version: 2.8.0.xx-20130703-1600-e43-RELEASE</p>