title: Groovy rootLoader is null
body: <p>When running a groovy script from Eclipse, the following line:</p>
  
  <pre><code>
  def rootLoader = this.class.getClassLoader().getRootLoader()
  </code></pre>
  
  <p>is null. When I run the script directly from command line, this is not null. How can I find out why this happens?</p>