r/java • • Jun 21 '11

Making Really Executable Jars

http://skife.org/java/unix/2011/06/20/really_executable_jars.html
44 Upvotes

12 comments sorted by

View all comments

0

u/[deleted] Jun 21 '11

Nowadays I use Groovy for my command line needs. It can even pull dependencies automatically from a Maven repository using the @Grab annotation.

No need to do a java -jar ./waffles.1.2.3.jar -foo=bar

A simple groovy Foo (or, if you shebang the script and make it executable it is even simpler, ./Foo.groovy).