Here’s something I learned about embedding JRuby:
If your script requires ‘rubygems’, you need to need to make sure you set a few system properties: jruby.base, jruby.home, jruby.lib, jruby.shell, and jruby.script. You can look in jruby.bat to see how these can be set from the command line. If, for some reason, you can’t set them on [...]