You should look in the documentation of the Script-engine you're using. Since we use JSR-223 for scripting, everythin you can do there is possible. No doubt eg. groovy has constructs to import classes. You just have to make sure they are present on the classpath