Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make 'really executable' jars #12

Open
stigkj opened this issue Sep 14, 2013 · 2 comments
Open

Make 'really executable' jars #12

stigkj opened this issue Sep 14, 2013 · 2 comments

Comments

@stigkj
Copy link
Owner

stigkj commented Sep 14, 2013

This is done by prepending a shell script to the resulting jar file that executes itself through java. Such a shell script could in its simplest form look like this:

#!/bin/sh
exec java -jar "$0" "$@"

A default script should be provided, but it should be possible to override this with one's own.

As the ZIP-spec states that a zip-file can have anything before the real zip begins, it should not pose a problem doing this all the time. This means there is no use for an option turning this on/off.

@jtnelson
Copy link

I built on your plugin to add this functionality in a new plugin called "jarsh"

https://github.com/cinchapi/jarsh

@iready
Copy link

iready commented Mar 11, 2016

really?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants