Recommend
If you like my work with RVM, please recommend me *with a comment as to why you recommend me* on
Working With Rails – Thank You!
IRC
I am 'wayneeseguin' in #rvm on irc.freenode.net
If I do not respond right away, leave a message and I'll respond or leave you a memo when I am around.
Sponsors
$ rvm help # Documentation Index

JRuby

JRuby is a ruby interpreter that gives the best of the JVM -- as battle-tested in the field for many years -- together with the awesomeness that is Ruby syntax.

Installing

$ rvm install jruby

Choosing the Ruby API

Currently, as of this writing, JRuby loads the Ruby 1.8 API and runs as 1.8.7 version.

If you need to run JRuby with the 1.9 Ruby API, you can do so in RVM using after_use hooks. You must record the JRUBY configuration

export JRUBY_OPTS="--1.9"

Be sure to add this to your jruby environment file(s).

For your console environment, I recommend detecting JRuby in an after_use hook and adding the export.

So for example, your after_use hook file might look something like this:

case "$GEM_HOME" in
  *jruby*)
    JRUBY_OPTS="--1.9" ; export JRUBY_OPTS
  ;;
esac

Community Resources

RVM Documentation Index