ruby in java, java in ruby, jruby or ruby java bridge
Java Ruby
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
src/test
.classpath
.gitignore
.project
buildfile
readme.textile

readme.textile

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!

requirements

This project requires MRI and JRuby, so you should be using RVM.

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!

calling examples

You will have to execute the examples differently:

rvm use jruby
ruby lib/jruby.rb

rvm use 1.8.7
ruby lib/rjb.rb

buildr

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

resources