title: Grails not loading classes in .jar file
body: <p>I am interested in using a certain library (<a href="https://github.com/tinkerpop/gremlin/wiki" rel="nofollow">Gremlin</a>, the graph traversal language) in my Grails project. I dropped the necessary .jars into [grailsproject]/lib. But when I do <code>grails run-app</code> it gives me a compilation error re:a class 'Gremlin' which is part of the jar (I confirmed that it is included in the jar by running <code>tar tf &lt;jarfile&gt;.jar</code>, and it shows the class Gremlin):</p>
  
  <pre><code>[groovyc] org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed,
  ...unexpected token: Gremlin @ line 45, column 2.
    [groovyc]     Gremlin.load()
    [groovyc]     ^
  </code></pre>
  
  <p>Is there a way to "refresh" Grails to make sure it loads the new jar files? I use the exact same jar in an independent groovy test app with the same import statements, and there I am able to use the Gremlin class and it works fine. My system $CLASSPATH doesn't include any jar files that I haven't also added in [grailsproject]/lib.</p>
  
  <p>Any ideas?</p>
  
  <p>Thanks!</p>
  
  <p><strong>Update</strong>: Here's the relevant section from the code:</p>
  
  <pre><code>package com.mycompany.myproject
  
  import org.codehaus.groovy.grails.commons.ConfigurationHolder as CH
  import com.orientechnologies.common.collection.*
  import com.orientechnologies.common.*
  import com.orientechnologies.orient.core.*
  import com.tinkerpop.blueprints.*
  import com.tinkerpop.blueprints.pgm.*
  import com.tinkerpop.blueprints.pgm.impls.orientdb.*
  import com.tinkerpop.gremlin.pipes.*
  import com.tinkerpop.gremlin.Gremlin
  import com.tinkerpop.gremlin.*
  
  
  class GraphDbService {
  
      boolean transactional = true    
  
      Gremlin.load()
  
      ...
  </code></pre>