java-inline is a plugin for RubyInline that adds JVM language support. See the examples dir for a simple example of using it.