Created
July 5, 2010 22:37
-
-
Save calavera/464777 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[david@calavera:voldemort-0.81]$ jdev -S jirb | |
no such file to load -- wirble | |
jruby-1.5.1 > require 'lib/voldemort_client' | |
=> true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'java' | |
PATH_TO_VOLDEMORT = '.' | |
require File.expand_path('dist/voldemort-0.81.jar', PATH_TO_VOLDEMORT) | |
Dir[File.expand_path('lib/*.jar', PATH_TO_VOLDEMORT)].each {|jar| require jar} | |
#include_package "org.jdom" | |
module VoldemortClient | |
#include_package "voldemort.client" | |
import 'voldemort.client.ClientConfig'; | |
import 'voldemort.client.SocketStoreClientFactory'; | |
import 'voldemort.client.StoreClient'; | |
import 'voldemort.client.StoreClientFactory'; | |
import 'voldemort.versioning.Versioned'; | |
# alternately, use the #import method | |
import "voldemort.client" | |
end |
it shouldn't be related with the environment. I'm also using a mac and I'm testing it with JRuby 1.5.1 and the development version and both work fine
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Strangely, the same code gets me:
NameError: cannot link Java class voldemort.client.SocketStoreClientFactory, probable missing dependency: org/jdom/Content
from /Users/rjurney/jruby-1.5.1/lib/ruby/site_ruby/shared/builtin/javasupport/core_ext/module.rb:53:in
import' from ./voldemort_client.rb:39 from ./voldemort_client.rb:2:in
require'from (irb):2
Does that mean we have a difference in environments or something?