How to call Java from JRuby?


require 'java'
java_import my.package.CoolClass

obj1 = Java::CoolClass.new