Closed arikan closed 10 years ago
Are you sure you are using the right version. Try to remove all old neo4j-core gems.
It is really strange. Have you solve the problem ? I can't reproduce this problem. Are you on windows,mac or linux ? I did a new release alpha.3 but it I think it will not solve your problem.
This is on a mac os x 10.7.5 with jruby 1.7.4.
java version "1.6.0_65"
Java(TM) SE Runtime Environment (build 1.6.0_65-b14-462-11M4609)
Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-462, mixed mode)
Gemfile
source 'http://rubygems.org'
gem "neo4j-core", :git => 'git://github.com/andreasronge/neo4j-core.git'
> bundle exec gem list
*** LOCAL GEMS ***
bundler (1.3.5)
httparty (0.12.0)
json (1.8.1 java)
multi_xml (0.5.5)
neo4j-community (2.0.0 java)
neo4j-core (3.0.0.alpha.2)
neo4j-cypher (1.0.2)
> bundle exec irb
jruby-1.7.4 :001 > require 'neo4j-core'
NameError: cannot link Java class org.neo4j.graphdb.DynamicLabel, probable missing dependency: org/neo4j/graphdb/DynamicLabel : Unsupported major.minor version 51.0
from org/jruby/javasupport/JavaClass.java:1242:in `for_name'
from org/jruby/javasupport/JavaUtilities.java:34:in `get_proxy_class'
from file:/Users/arikan/.rvm/rubies/jruby-1.7.4/lib/jruby.jar!/jruby/java/java_package_module_template.rb:4:in `const_missing'
from /Users/arikan/.rvm/gems/jruby-1.7.4/bundler/gems/neo4j-core-d3d87b39c1f3/lib/neo4j-embedded/embedded_label.rb:5:in `EmbeddedLabel'
from /Users/arikan/.rvm/gems/jruby-1.7.4/bundler/gems/neo4j-core-d3d87b39c1f3/lib/neo4j-embedded/embedded_label.rb:2:in `Embedded'
from /Users/arikan/.rvm/gems/jruby-1.7.4/bundler/gems/neo4j-core-d3d87b39c1f3/lib/neo4j-embedded/embedded_label.rb:1:in `(root)'
from org/jruby/RubyKernel.java:1054:in `require'
from /Users/arikan/.rvm/gems/jruby-1.7.4/bundler/gems/neo4j-core-d3d87b39c1f3/lib/neo4j-embedded.rb:1:in `(root)'
from org/jruby/RubyKernel.java:1054:in `require'
from /Users/arikan/.rvm/gems/jruby-1.7.4/bundler/gems/neo4j-core-d3d87b39c1f3/lib/neo4j-embedded.rb:7:in `(root)'
from org/jruby/RubyKernel.java:1054:in `require'
from /Users/arikan/.rvm/gems/jruby-1.7.4/bundler/gems/neo4j-core-d3d87b39c1f3/lib/neo4j-core.rb:1:in `(root)'
from org/jruby/RubyKernel.java:1093:in `eval'
from /Users/arikan/.rvm/gems/jruby-1.7.4/bundler/gems/neo4j-core-d3d87b39c1f3/lib/neo4j-core.rb:22:in `(root)'
from (irb):1:in `(root)'
from (irb):1:in `evaluate'
from org/jruby/RubyKernel.java:1489:in `loop'
from org/jruby/RubyKernel.java:1254:in `catch'
from org/jruby/RubyKernel.java:1254:in `catch'
from /Users/arikan/.rvm/rubies/jruby-1.7.4/bin/irb:13:in `(root)'
Strange, I'm also on mac but using java version "1.7.0_10" check this: http://stackoverflow.com/questions/10382929/unsupported-major-minor-version-51-0 Btw, made a very basic rails app with v3.0 of neo4j - https://github.com/andreasronge/neo4j/tree/3.0/example/blog
Installed java version "1.7.0_45" on mac os x, using with jruby 1.7.4 and now it works fine.
I tried the neo4j-core api, looks good. I will try the rails app.
Hi Andreas,
I tried your rails app, but it throws the following error, looking for active_support somehow...
In the rails app's Gemfile I removed the path below, which in return installed neo4j (1.3.1 java). This may cause the error, not sure. What should be right reference for the neo4j installation here. In other words, which neo4j libs we need now for a proper rails app?
gem 'neo4j' #, path: '../..'
> rails s
LoadError: no such file to load -- active_support/core_ext/class/inheritable_attributes
require at org/jruby/RubyKernel.java:1054
(root) at /Users/arikan/.rvm/gems/jruby-1.7.4/gems/neo4j-1.3.1-java/lib/neo4j.rb:9
require at org/jruby/RubyKernel.java:1054
(root) at /Users/arikan/.rvm/gems/jruby-1.7.4@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:1
each at org/jruby/RubyArray.java:1617
require at /Users/arikan/.rvm/gems/jruby-1.7.4@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:72
each at org/jruby/RubyArray.java:1617
require at /Users/arikan/.rvm/gems/jruby-1.7.4@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:70
require at /Users/arikan/.rvm/gems/jruby-1.7.4@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:59
require at /Users/arikan/.rvm/gems/jruby-1.7.4@global/gems/bundler-1.3.5/lib/bundler.rb:132
require at org/jruby/RubyKernel.java:1054
(root) at /Users/arikan/Sites/neotest/config/application.rb:19
tap at org/jruby/RubyKernel.java:1860
(root) at /Users/arikan/.rvm/gems/jruby-1.7.4/gems/railties-4.0.2/lib/rails/commands.rb:1
require at org/jruby/RubyKernel.java:1054
(root) at bin/rails:4
Hi
Nice that you are testing it. It will not work with Neo4j 1.3.1. You should not edit the Gemfile since we should use the latest unreleased neo4.rb If you pull from github and cd in to the blog folder then the path should be correct.
Otherwise you can build the alpha version by running the Rake task in the root folder (check it Rake -T) Or install it from github 3.0 branch. Both those two options requires you to edit the Gemfile.
Cheers
On Wed, Jan 1, 2014 at 4:29 PM, Burak Arikan notifications@github.comwrote:
Hi Andreas,
I tried your rails app, but it throws the following error, looking for active_support somehow...
In the rails app's Gemfile I removed the path below, which in return installed neo4j (1.3.1 java). This may cause the error, not sure. What should be right reference for the neo4j installation here. In other words, which neo4j libs we need now for a proper rails app?
gem 'neo4j' #, path: '../..'
rails s LoadError: no such file to load -- active_support/core_ext/class/inheritable_attributes require at org/jruby/RubyKernel.java:1054 (root) at /Users/arikan/.rvm/gems/jruby-1.7.4/gems/neo4j-1.3.1-java/lib/neo4j.rb:9 require at org/jruby/RubyKernel.java:1054 (root) at /Users/arikan/.rvm/gems/jruby-1.7.4@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:1 each at org/jruby/RubyArray.java:1617 require at /Users/arikan/.rvm/gems/jruby-1.7.4@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:72 each at org/jruby/RubyArray.java:1617 require at /Users/arikan/.rvm/gems/jruby-1.7.4@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:70 require at /Users/arikan/.rvm/gems/jruby-1.7.4@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:59 require at /Users/arikan/.rvm/gems/jruby-1.7.4@global/gems/bundler-1.3.5/lib/bundler.rb:132 require at org/jruby/RubyKernel.java:1054 (root) at /Users/arikan/Sites/neotest/config/application.rb:19 tap at org/jruby/RubyKernel.java:1860 (root) at /Users/arikan/.rvm/gems/jruby-1.7.4/gems/railties-4.0.2/lib/rails/commands.rb:1 require at org/jruby/RubyKernel.java:1054 (root) at bin/rails:4
— Reply to this email directly or view it on GitHubhttps://github.com/andreasronge/neo4j-core/issues/36#issuecomment-31424491 .
Thanks Andreas,
It works after installing gem 'neo4j' from github 3.0 branch. And editing the config/application.rb as mentioned here https://github.com/andreasronge/neo4j/wiki/Neo4j-v3
Great. Here is the planned API - https://github.com/andreasronge/neo4j/wiki/Neo4j-v3
after installing the alpha version
tried in irb and got the following error:
What would be wrong here, also here is my gem list: