This was a bigger deal 10 years ago than it is now. I'm not sure why that is, but I guess people don't distribute stand-alone
Java applications as often, or stand-alone programs at all for that matter. Anyway, what you probably need is a Ahead-of-time (AOT) compiler. There's a good article about it
here.