Normally you could just peform an
import someClassName
and the groovy script will import the class (assmuming its all in the current dir).
However, how would I accomplish this when the script is run via the groovy script runner?
what is the difference? the same way, in the beginning of the script. Doesn't it work for you? do you have some errors?
I encounter something along the lines of
noMethodError
however if i use the class in the same file, it works.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Please give more context and some non-working sample code
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for the assistance but it appears to be working now. I'm unsure what I did differently from the first time I tested it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.