class Snmpjr
  module Wrappers
    begin
      require 'java'
      require 'snmpjr/wrappers/snmp4j-2.3.1.jar'
    rescue
      raise "Snmpjr requires JRuby"
    end

    include_package 'org.snmp4j'
  end
end

class Snmpjr
  module Wrappers
    require 'java'
    require 'snmpjr/wrappers/snmp4j-2.3.1.jar'

    include_package 'org.snmp4j'
  end
end

Remove begin rescue around requiring java
Remove begin rescue around requiring java

gemspec will not allow the gem to be installed on anything other than jruby
