According to the JRuby developers, the preferred way to check for JRuby is `defined?(JRUBY_VERSION)`