title: Resolving: Groovyc: Internal groovyc error: code 1
body: <p>I'm compiling a project that works OK in Eclipse, and builds fine with ant, but in IntelliJ IDEA gives:</p>
  
  <ul>
  <li><code>Internal groovyc error: code 1</code></li>
  </ul>
  
  <p>How can I resolve this? Other error messages include:</p>
  
  <pre><code>1:35:46 PM Unknown Natures Detected
             Imported projects contain unknown natures:
             org.eclipse.jdt.groovy.core.groovyNature
             Some settings may be lost after import.
  1:43:55 PM Compilation completed with 1 error and 7 warnings in 20 sec
  Groovyc: Cannot compile Groovy files: no Groovy library is defined for module
  </code></pre>
  
  <p>Groovy itself is installed on Linux.  Adding it as a groovy compiler in settings does not affect the behavior:</p>
  
  <pre><code>&gt; groovy --version
  Groovy Version: 1.7.4 JVM: 1.6.0_24
  </code></pre>