I have trouble to invoke Ruby scripts in Java applications

The following didn't work
> Ruby runtime = Ruby.getDefaultInstance(null);
> runtime.evalScript("puts 'hello'");


any examples????


Runtime.getRuntime().exec("jruby test.rb"); //didn't work either, no output

//test.rb
puts 'hello'



So basically Ruby doesn't support Java. i.e. Ruby language can't invoke Java
API