Hi, I just released this gem allowing jrubyists to use in a fairly transparent way MapDB 0.9.5 (jar is included in the gem). MapDB is a fast key-value store java library. This gem serves as a 'OKVM' (object key-value mapper) promoting the use of MapDB trees as if they were ruby hashes. You can find it at 2 locations if you're a jruby user: - https://rubygems.org/gems/jruby-mapdb - https://github.com/cmichon/jruby-mapdb Enjoy!
on 2013-09-24 00:59
on 2013-09-24 18:54
Christian: I get the following error when I attempt to run the examples provided at github: NameError: cannot load Java class org.mapdb.DBMaker file:/Users/charles/.rvm/rubies/jruby-1.7.4/lib/jruby.jar!/jruby/java/java_package_module_template.rb:4:in `const_missing' /Users/charles/.rvm/gems/jruby-1.7.4/gems/jruby-mapdb-0.9.5-java/lib/jruby/mapdb.rb:52:in `initialize' /Users/charles/RubymineProjects/TestMapDB/src/tests/basic_test.rb:28:in `test_basic_insert' (eval):12:in `run' /Applications/RubyMine EAP.app/rb/testing/patch/testunit/test/unit/ui/teamcity/testrunner.rb:93:in `start_mediator' /Applications/RubyMine EAP.app/rb/testing/patch/testunit/test/unit/ui/teamcity/testrunner.rb:81:in `start' I do have the require in place. I have not set an import of the Java class but I would hope we would not need to do so.. thanks Charles Monteiro firstname.lastname@example.org
on 2013-09-24 23:30
I have not yet tested it on linux or with rvm, but including gem 'jruby-mapdb' in your Gemfile and letting bundler do the magic for you should solve your problem. If you include it by hand, add the lib from the gem in one of the directories from your load path. I already included the java requires.