fix jruby support
Merge pull request #88 from le0pard/master

Fix jruby support