Call JRuby from Java Example
Java Ruby
Latest commit 4c8205d Jan 4, 2011 @tc jruby file
Permalink
Failed to load latest commit information.
JavaCallerApp.java
JavaInterfaceExample.java calling java from jruby example Jun 20, 2010
JrubyAdderImpl.java calling java from jruby example Jun 20, 2010
JrubyAdderImpl.rb jruby file Jan 5, 2011
README calling java from jruby example Jun 20, 2010

README

Calling JRuby From Java

Here's a toy example of how to implement a Java interface method in JRuby and then call it from Java.

Compile it:
javac JavaInterfaceExample.java
jrubyc --javac -cp . JrubyAdderImpl.rb
javac -cp /usr/local/jruby/lib/jruby.jar:. JavaCallerApp.java

Run the Java caller app:
java -cp /usr/local/jruby/lib/jruby.jar:. JavaCallerApp

--
@tommychheng
http://tommy.chheng.com
Interested in computer science grad school? Find top computer science grad schools based on their research using http://gradschoolnow.com