<p>I have a groovy script that needs a library in a jar. How do I add that to the classpath? I want the script to be executable so I'm using <code>#!/usr/bin/env groovy</code> at the top of my script. </p>

If you really have to you can also load a JAR at runtime with:
```
```
this.getClass().classLoader.rootLoader.addURL(new File("file.jar").toURL())
```
```