In JRuby 1.2.0 (haven't checked other versions), require 'java'; gives a
warning that there is no such file to load.
Generally, the jruby rails environment does this for you, or some other
library pulls it in, but in a bare script you need to do it yourself.
In any case, it should not be a warning.