title: Using cucumber with jruby
body: <p>I'm working on my company's intranet with </p>
  
  <ul>
  <li>cucumber 0.8.5</li>
  <li>gherkin 2.1.5</li>
  </ul>
  
  <p>And I'm trying to switch from using ruby 1.8.7 to jruby 1.5.1</p>
  
  <p>However, whenever I try to run cucumber from jruby, I get an error:</p>
  
  <pre><code>% jruby -S cucumber
  /usr/local/src/jruby-1.5.1/lib/ruby/site_rub/1.8/rubygems/custom_require.rb:31:in `require': no such file to load -- gherkin (LoadError)
  </code></pre>
  
  <p>I think this is b/c gherkin 2.1.5 is a native extension, and jruby can't handle it:</p>
  
  <pre><code>% jgem install gherkin-2.1.5.gem
  ...
  ERROR: Error installing gherkin-2.1.5.gem:
         ERROR: Failed to build gem native extension.
  </code></pre>
  
  <p>Now, I'd love to just try updating versions, but since this is on a protected intranet, importing new software is a PITA, and takes some time.</p>
  
  <p>Does anyone have any suggestions of how I can make the software I have work?  Am I missing a proper configuration setting or some such?</p>