Forum: JRuby [ANN] jruby-mapdb 0.9.5 gem released

2c0c4cf3ccc8da22f7c3b9586ce1cd70?d=identicon&s=25 Christian MICHON (Guest)
on 2013-09-24 00:59
(Received via mailing list)
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!
2d1b64aaf61046ad166db3009fa8c7dc?d=identicon&s=25 Charles Monteiro (Guest)
on 2013-09-24 18:54
(Received via mailing list)
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
jruby@smallruby.com
2c0c4cf3ccc8da22f7c3b9586ce1cd70?d=identicon&s=25 Christian MICHON (Guest)
on 2013-09-24 23:30
(Received via mailing list)
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.
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.