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:

  • What can we do to make this easier?
  • Have you seen my gist of experimental jrubyc --java support?
    (http://gist.github.com/278497) Experimental experimental
    experimental, but likely to ship something in 1.5.

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:
http://spin.atomicobject.com/2010/02/01/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:
http://spin.atomicobject.com/2010/02/01/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.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs