ReadyTalk/avian — pull request #21 by csoren (2012-11-13 08:31:45+00:00)
Title: "embed" utility for Windows

This patch adds an "embed" utility for Windows. Its usage is "embed.exe destination.exe boot.jar package.MainClass", which will produce a ready to deploy destination.exe with the boot.jar embedded which will start the package.MainClass main method when run.

It works by writing out a skeleton loader and embedding the boot.jar and main class string as PE resources with no need for an installed C++ build environment.

I suppose something similar can be made for Linux/Mac, but an embed shell script that simply invokes gcc may be a better option for these platforms.