Add support for jruby, single core, multi-core.