JRuby + Sqlitejdbc : No suitable driver found for jdbc:sqlite:
问题 On a machine I have only a user account on, I want to dump the output of a job into an sqlite database instead of textfiles. To this end, I run jruby from the jarfile. The approach usings gems ( dbi, dbd/Jdbc, jdbc/sqlite3 ) from a local GEM_HOME did not work (No suitable driver found) and also produces deprecation messages from the gems ("include_class is deprecated. Use java_import.") I turned to Zentus' sqlitejdbc-v056.jar and ran JRuby with Zentus' in the path: java -cp .:sqlitejdbc-v056