Java and Ruby work together