Create a gist now

Instantly share code, notes, and snippets.

$ javac MyTest.java
$ jruby -S irb
ruby-1.8.7-p352 :001 > require 'java'
=> true
ruby-1.8.7-p352 :002 > java_import 'MyTest'
=> Java::Default::MyTest
ruby-1.8.7-p352 :003 > MyTest.new
=> #<Java::Default::MyTest:0xc07bacb>
ruby-1.8.7-p352 :004 >
public class MyTest {
public void test(){}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment