title: Import error in jar file in Groovy
body: <p>Similar to <a href="https://stackoverflow.com/questions/5220965/could-not-successfuly-import-class-in-groovy">this question</a> I have a small groovy test script that basically uses the example from <a href="http://opencsv.sourceforge.net/#how-to-read" rel="nofollow noreferrer">opencsv</a> java library:</p>
  
  <pre><code>import au.com.bytecode.opencsv.CSVReader
  
  CSVReader reader = new CSVReader(new FileReader("GroovyTest.csv"));
      String [] nextLine;
      while ((nextLine = reader.readNext()) != null) {
          // nextLine[] is an array of values from the line
          System.out.println(nextLine[0] + nextLine[1] + "etc...");
      }
  </code></pre>
  
  <p>I keep getting the error "unable to resolve class au.com.bytecode.opencsv.CSVReader".  I even put the opencsv jar file in the same directory as my script but it does not recognize it.  I assumed this was a classpath issue so I tried with -cp tag only to receive the same error.</p>
  
  <p>I am running from the command line as <code>$ groovy testg.groovy</code></p>