Created
November 14, 2011 05:43
-
-
Save qmx/1363334 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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 > |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class MyTest { | |
public void test(){} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment