title: Running a groovy script created in STS(Spring Tool Suite) using the command line
body: <p>I have used the STS(Spring Tool Suite) to create a compiled groovy script which exists as a file on windows called Test.class. I am able to right click on the file in STS and execute it which works well.</p>
  
  <p>However - I want to be able to execute the script on the windows command line, so far I have tried various ways but have not been successful. I have tried the following...</p>
  
  <blockquote>
    <p>java -cp C:\Users\MyName\springsource\sts->
    3.1.0.RELEASE\plugins\org.codehaus.grails.bundle_2.1.1\content\lib\
    org.codehaus.groovy\groovy-all\jars\groovy-all-1.8.8.jar Test.class</p>
  </blockquote>
  
  <p>But that does not work it gives me an error --> Error: Could not find or load main class Test.class</p>
  
  <p>Any Pointers?</p>