title: How to create Groovy class in Eclipse
body: <p>My Computer is Macbook pro, the computer's system version is: OS X 10.11.4 (OS X El Capitan)</p>
  
  <p>My Eclipse's version is 4.5.</p>
  
  <p>the Eclipse is installed Groovy plugin (URL is <a href="http://dist.springsource.org/milestone/GRECLIPSE/e4.3/" rel="nofollow noreferrer">http://dist.springsource.org/milestone/GRECLIPSE/e4.3/</a>) ;</p>
  
  <p>restart my Eclipse.</p>
  
  <hr>
  
  <p>I create a Groovy project ----> success </p>
  
  <p>I create a Groovy class ----> error !</p>
  
  <p>have 2 alert .</p>
  
  <p>the 1st :
      ‘Building workspace’ has encountered a problem . Errors occurred during the build .</p>
  
  <pre><code>error details : Errors occurred during the build.
  Errors running builder 'Java Builder' on project 'GroovyJavaProject'.
  org/codehaus/jdt/groovy/integration/LanguageSupportFactory
  </code></pre>
  
  <p>the 2nd :
      Creation of element failed .
      org.eclipse.jdt.internal.core.CompilationUnit cannot be cast to org.codehaus.jdt.groovy.model.GroovyCompilationUnit.</p>
  
  <p><a href="https://i.stack.imgur.com/ubIjU.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ubIjU.jpg" alt="enter image description here"></a></p>