ruby in java, java in ruby, jruby or ruby java bridge
Q: What are you supposed to use in your ruby/jruby/java application?
A: It depends!
buildr is used as a build tool:
rvm use jruby gem install buildr
RJB is required as a gem for MRI (no JRuby support):
rvm use 1.8.7 export JAVA_HOME=/Library/Java/Home gem install rjb
Tested on OS X Snow Leopard only!
You will have to execute the examples differently:
rvm use jruby ruby lib/jruby.rb rvm use 1.8.7 ruby lib/rjb.rb
The Java tests can be executed with buildr:
rvm use jruby buildr clean test
Buildr provides an eclipse integration:
rvm use jruby # update .project get dependencies and create .classpath buildr eclipse # download artifact sources artifacts:sources
- Groovy Docs – Dynamic language beans in Spring
- Spring Docs – Dynamic language support
- yokolet’s notelets – RedBridge, what are new and improved in JRuby 1.5.0RC1