Resolve runtime issues on jruby