JRuby 1.7.14 发布 ,此版本现已提供下载:
http://.example.ISpeaker"puts "Hello from ruby"set = TreeSet.newset.add "foo"set.add "Bar"set.add "baz"set.each { |v| puts "value: #{v}" }cm = CallMe.newcm.hello$globalCM.helloclass CallJavainclude ISpeakerdef initialize super @count = 0enddef say(msg) puts "Ruby saying #{msg}"enddef addOne(from)# m.synchronize { @count += 1 puts "Now got #@count from #{from}"# }endend