Jruby: NameError: неинициализированная константа Neo4j - PullRequest
1 голос
/ 21 февраля 2012

Я запустил этот пример из git: https://github.com/andreasronge/neo4j

require "rubygems"
require 'neo4j'

Neo4j::Transaction.run do
  node = Neo4j::Node.new(:name => 'andreas')
  node.outgoing(:friends) << Neo4j::Node.new(:name => 'peter')
  node.outgoing(:friends).each {|node| puts "name #{node[:name]}"}
end

и вывел ошибку:

NameError: uninitialized constant Neo4j
  const_missing at org/jruby/RubyModule.java:2626
         (root) at ./neo4j.rb:4
        require at org/jruby/RubyKernel.java:1027
        require at ./neo4j.rb:36
         (root) at /Users/ZATLUKE/RubymineProjects/nokogiri/neo4j.rb:2
           load at org/jruby/RubyKernel.java:1052
         (root) at -e:1

Есть идеи?

...