views:

115

answers:

2

When running a groovy script from Eclipse, the following line:


def rootLoader = this.class.getClassLoader().getRootLoader()

is null. When I run the script directly from command line, this is not null. How can I find out why this happens?

A: 

Did you ever get an answer to this? Sorry, but I'm also having this issue, and want to dynamically alter the class-path

DFH
Maybe http://docs.codehaus.org/display/GROOVY/How+can+I+dynamically+add+a+library+to+the+classpath can help you.
Geo