exec-jar
converts a standalone jar file to a standalone executable
via combining a startup script with the jar file.
This works because
java combined.jar
will ignore the startup script at the beginning.
; make
Files will be installed to /usr/local/bin
.
If you want to install other place, edit config.mk
before running make
.
Makefile is compatible with both GNU make and BSD make.
; basher install weakish/gister
Copy exec-jar
and preceed-jar.sh
to PATH
:
- Both must be in the same directory.
- Do not rename
preceed-jar.sh
topreceed-jar
.
exec-jar hello.jar # Output file: hello
0BSD