I set CLASSPATH in the system side of the Advance System Settings Environment . . .
Thanks for the code example and yes, CLASSPATH looks as expected: .;C:\Program Files (x86)\Java\jre6\lib\ext\QTJava.zip;C:\Users\Merrow\test It all works from Groovy Console . . . I just have no idea why it doesn't work from Jenkins . . . I am running it as a Windows Service, but from the results above, clearly CLASSPATH is set correctly. You're saying is "should work" . . . interesting . . . I'm not sure what to do with that . . . but interesting. Frank -----Original Message----- From: jenkinsci-users@googlegroups.com [mailto:jenkinsci-users@googlegroups.com] On Behalf Of Les Mikesell Sent: Sunday, March 11, 2012 8:46 PM To: jenkinsci-users@googlegroups.com Subject: Re: Newbie Question: Groovy import doesn't work under Jenkins On Sun, Mar 11, 2012 at 12:18 PM, Frank Merrow < <mailto:fmer...@san.rr.com> fmer...@san.rr.com> wrote: > > I have rebooted since adjusting CLASSPATH, verified CLASSPATH still > works under groovyConsole and restarted my system and Jenkins any > number of times thinking Jenkins might have a cached version of my environment variables . > . . still no joy. > > > > In short, CLASSPATH doesn't seem to be working for Jenkins Groovy at all. > > > > What am I missing? Where are you setting CLASSPATH? Jenkins jobs don't run in the same context as a console user. And do you get what you expect in the job console ouput if you run a groovy job that just says println System.getenv("CLASSPATH") -- Les Mikesell <mailto:lesmikes...@gmail.com> lesmikes...@gmail.com