Java supports Runnable JARs. This bundles all dependencies into the JAR so you can just run: java -jar foobar.jar And if it's a webapp, you can use something like Jersey so that the JAR itself if a webserver (launched from main function). And with Jersey+Grizzly you can make webapps that have zero XML config, btw. Java's SSL handling is definitely annoying, though. But I think it's better than how other languages do…
The script target creates a runnable shell script that has the jar and all dependencies embedded. The last step might be using packr[0] to also embed the java runtime.