Fix jruby support

Fix jruby support