Java Mailing List Archive

http://www.gg3721.com/

Home » user.groovy »

[groovy-user] Grape jars not added to classpath?

Stephan Zeissler

2010-08-26


Author LoginPost Reply

Hi,

I have a server _without_ an internet connection, where I want to run some
groovy scripts I developed. I copied the ~/.groovy/grapes/ folder to the
server, to copy my dependencies.

$ grape list

lists the dependencies just fine, so it would guess it finds them. But when
I execute the scripts, it fails with a ClassNotFoundException.

I invoke the script like this

$ groovy -cp someOtherLib.jar:Ihave.jar -DjavaOptsForSSL <scriptname>.groovy

Does anyone have an idea, why the script cann't find the JARs the grape
command sees?

Thanks,
Stephan
--
Sent from the groovy - user mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

  http://xircles.codehaus.org/manage_email


©2008 gg3721.com - Jax Systems, LLC, U.S.A.