title: JRuby and SQLite3
body: <p>I'm trying to make work JRuby and SQLite3 with the following gems:</p>
  
  <blockquote>
    <p>bouncy-castle-java (1.5.0146.1)</p>
    
    <p>bundler (1.3.2)</p>
    
    <p>dbd-jdbc (0.1.6 java)</p>
    
    <p>dbi (0.4.5)</p>
    
    <p>deprecated (2.0.1)</p>
    
    <p>jdbc-sqlite3 (3.7.2.1)</p>
    
    <p>jruby-launcher (1.0.15 java)</p>
    
    <p>jruby-openssl (0.8.2)</p>
    
    <p>json (1.7.7 java)</p>
    
    <p>rack (1.5.2)</p>
    
    <p>rack-protection (1.4.0)</p>
    
    <p>rake (10.0.3)</p>
    
    <p>rubygems-bundler (1.1.1)</p>
    
    <p>rvm (1.11.3.6)</p>
    
    <p>sinatra (1.3.5)</p>
    
    <p>sqlite3 (1.3.7)</p>
    
    <p>tilt (1.3.5)</p>
  </blockquote>
  
  <p>and this code:</p>
  
  <pre><code>require 'java'
  require 'dbi'
  require 'dbd/Jdbc'
  require 'jdbc/sqlite3'
  
  dbh = DBI.connect(
    "DBI:jdbc:sqlite:db.sqlite",  # connection string
     '',                                 # no username for sqlite3
     '',                                 # no password for sqlite3
     'driver' =&gt; 'org.sqlite.JDBC')      # need to set the driver
  </code></pre>
  
  <p>But I have this error:</p>
  
  <blockquote>
    <p>DBI::InterfaceError: Unable to load driver 'jdbc' (underlying error: wrong constant name jdbc)
           load_driver at /home/gl/.rvm/gems/jruby-1.7.3/gems/dbi-0.4.5/lib/dbi.rb:300
       mon_synchronize at /home/gl/.rvm/rubies/jruby-1.7.3/lib/ruby/1.9/monitor.rb:211
           load_driver at /home/gl/.rvm/gems/jruby-1.7.3/gems/dbi-0.4.5/lib/dbi.rb:242
      _get_full_driver at /home/gl/.rvm/gems/jruby-1.7.3/gems/dbi-0.4.5/lib/dbi.rb:160
               connect at /home/gl/.rvm/gems/jruby-1.7.3/gems/dbi-0.4.5/lib/dbi.rb:145
                (root) at srv.rb:6</p>
  </blockquote>
  
  <p>Have you got an idea?</p>