A sample for JRuby extension. See my blog post, http://http://yokolet.blogspot.com/2011/05/extending-jruby.html $ rake compile To run sample: $ ruby sample/fraction_sample.rb