Java Mailing List Archive

http://www.gg3721.com/

Home » user.groovy »

[groovy-user] Q: Packaging Groovy

grkuntzmd

2008-08-06

Replies: Find Java Web Hosting

Author LoginPost Reply

I am trying to figure out how to package a Groovy script using the
GROOVY_HOME/embeddable/groovy-all-*.jar file. I am writing some utilities
and would like to run them on other machines that have the JVM, but do not
have Groovy installed (production machines - management resistant to
installing ANYTHING new).

I assume that I can just add my compiled groovy code to the groovy-all-*.jar
(after renaming to 'myscript.jar') and call

  java -cp myscript.jar myclass

but I would rather set the Main-Class value in the manifest and then run

 java -jar myscript.jar

Is this possible? If so, how?

Thanks, Ralph
--
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.