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

1

u/bjarneh Jun 21 '11

that does not work...

a shell-script stub with a jar-file contained inside the script does work however, makeself uses that apporoach. but it needs to pipe the exact jar-file (bytes of the shell-script) into a file (tmp_whatever.jar for instance) and then run java -jar tmp_whatever.jar $@ on that file.

0

u/[deleted] Jun 21 '11

[deleted]

1

u/bjarneh Jun 21 '11

i stand corrected :-)