title: Groovy unexpected token: @ @ line
body: <p>I am getting following error when i run groovy:</p>
  
  <pre><code>org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
  C:\Users\kbekur\MuleStudio\workspace\GroovyTest\src\com\test\SQLGroovy.groovy: 3: unexpected token: @ @ line 3, column 2.
      @Grab(group='org.hsqldb', module='hsqldb', version='2.3.2')
      ^
  
  1 error
  </code></pre>
  
  <p>And my code is: </p>
  
  <pre><code>@Grapes([
       @GrabConfig(systemClassLoader = true)
       @Grab(group='org.hsqldb', module='hsqldb', version='2.3.2')
  ])
  import groovy.sql.Sql
  def db = [url:'jdbc:hsqldb:hsql://localhost/testdb', user:'sa', password:'', driver:'org.hsqldb.jdbc.JDBCDriver']
  def sql = Sql.newInstance(db.url, db.user, db.password, db.driver)
  println 'Some GR8 projects:'
  sql.eachRow('select * from Persons') { row -&gt;
      println "${row.lastname.padRight(10)} ($row.personid)"
  }
  </code></pre>
  
  <p>After analysis, I have found that </p>
  
  <pre><code>You can't annotate a statement. 
  You should put the grab annotation on an import, for instance.
  </code></pre>
  
  <p>I am not clear with above statement, what changes I need to make to fix compilation issue and load the jars.</p>
  
  <p>I am referring the code from: <a href="http://mrhaki.blogspot.com/2010/04/groovy-goodness-configuring-grape-to.html" rel="nofollow">jars, system class loader</a></p>