Only support JRuby.

Any other Ruby platform will raise an exception.