On Tue, 5 Aug 2008, Charles Oliver Nutter wrote:

One of the pain points of using JRuby seems to be the fact that the "jruby" executable is a shell script or bat script. This makes the command line processing more complicated, but even worse on *nix it makes it impossible to use directly in a shebang. So we've often kicked around the idea of a native executable for JRuby.

I was playing with Rawr a bit yesterday and realized that a similar technique could be used to create a native JRuby executable. Rawr currently uses Launch4J to create a .exe file containing the resources for your app. That exe then links in Java and starts up like any other executable.

According to the Launch4J site it can produce executables that work on Windows, Linux, OS X, and Solaris. So that covers the four primary platforms we support, and it doesn't sound like it would be hard to add more.

So is there interest in this? Would you install an optional "native_jruby" gem that gives you a native "jruby" executable if you could?

- Charlie

I've used launch4j before to package jruby programs along with the
runtime (hm, now I wonder why I didn't do that when I ran across the
batch wildcard problem...).

However, although you can build on those four platforms (I normally
build on linux), I believe it only creates a Windows executable.

Wes

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email


Reply via email to