title: JRuby OpenSSL Error
body: <p>I am having problems configuring JRuby to work properly with OpenSSL.  Googling has revealed that this is a pretty common occurence, but none of the solutions I've read have worked for me.  Here is my setup:</p>
  
  <ul>
  <li>Ubuntu 9.10</li>
  <li>jruby 1.5.1</li>
  <li>jruby-openssl (0.7)</li>
  </ul>
  
  <p>Here is the error:</p>
  
  <pre><code>irb(main):001:0&gt; require 'jruby/openssl/gem_only'
  =&gt; true
  irb(main):002:0&gt; require 'openssl'
  =&gt; true
  irb(main):003:0&gt; OpenSSL::Digest::OPENSSL_VERSION_NUMBER
  NameError: uninitialized constant OpenSSL::Digest::OPENSSL_VERSION_NUMBER
  </code></pre>
  
  <p>Interestingly, <code>require 'openssl'</code> returns true even if I don't have the jruby-openssl gem installed.  According to <a href="http://jruby.org/openssl" rel="nofollow noreferrer">this link</a>, that shouldn't happen?</p>
  
  <p>Trying to load the gem explictly with <code>require 'rubygems'</code> and <code>gem 'jruby-openssl'</code> doesn't help.</p>