Skip to content
Martin Prout edited this page Apr 3, 2014 · 16 revisions
  • System install JRuby (use rvm if you must).
  • Install the ruby-processing using the installed jruby (sudo prefix may be required on some systems)
jruby -S gem install ruby-processing-2.1.2.gem # the jruby -S prefix may not always be required
  • Install all the gems you want use with jruby or ruby-processing the same way
jruby -S gem install some_gem #some_gem is a remote rubygem gem, jruby -S prefix may not always be required

When running the sketch use the local version of JRuby, to be sure that you can access the installed gems...

See samples/external_library/ruby_gem

An alternative way of using regular installed rubygems is to set the GEM_HOME environmental variable but this may not work..

Or allow rvm to sort it out for you?

Recently another alternative, that allows of the use jruby-complete with rubygems, is to use the [rpbundle][] gem. [rpbundle]:http://rubygems.org/gems/rpbundle

Clone this wiki locally