Running a Ruby application with jruby-complete

I just published a short article about running Ruby applications and
scripts
using jruby-complete. Here’s a url:

Building up the java -jar command can be non-obvious depending on what
you’re doing; the article shares some knowledge on how to do things like
compile and run Ruby files using only jruby-complete.

I also wrote a companion article discussing why embedding jruby-complete
into your Ruby application is compelling:

Hope this helps someone.

I have not read through both articles completely, but I have a few
questions, suggestions, etc:

I think there’s a lot we could do to make this simpler, like generally
unifying the load logic for in-jar and out-of-jar cases.

On Mon, Feb 1, 2010 at 7:34 AM, Matt Fletcher
[email protected] wrote:

I just published a short article about running Ruby applications and scripts
using jruby-complete. Here’s a url:
Running a Ruby Application with jruby-complete
Building up the java -jar command can be non-obvious depending on what
you’re doing; the article shares some knowledge on how to do things like
compile and run Ruby files using only jruby-complete.
I also wrote a companion article discussing why embedding jruby-complete
into your Ruby application is compelling:
The Case for Embedding jruby-complete into Your Application
Hope this helps someone.


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email
  • I don’t know that there’s much to simplify here. My post really has
    two
    intents. One is increase overall awareness that you can run Ruby apps
    with
    only Java and jruby-complete. The other is to give some sample Rake
    tasks to
    make the process manageable. All the rake tasks are really doing is
    building
    up a java command. I don’t think there’s much that JRuby can do to make
    a
    java command easier to type.
  • I had not seen that gist before. Unifying the load logic will help
    when it
    comes to building an application that can run from the filesystem (in
    developer mode) or from within a jar file (when the end user is running
    it).
    Right now we do a lot of shenanigans in our bootstrap files to get the
    LOAD_PATH and what not setup just right depending on which mode we’re
    in.
    A nice solution to http://jira.codehaus.org/browse/JRUBY-3299 may go a
    long
    way toward that.

On Mon, Feb 1, 2010 at 2:35 PM, Charles Oliver N.