I want to connect to neo4j via Java. I am using neo4j-rest-graphdb 2.0.1.
My code:
RestAPI restAPI = new RestAPIFacade("http://localhost:7474/db/data","","");
RestCypherQueryEngine engine = new RestCypherQueryEngine(neo4j.getRestAPI());
I keep getting this on the new RestAPIFacade line:
Caused by: java.lang.NoClassDefFoundError:
com/sun/jersey/api/client/filter/ClientFilter
at
org.neo4j.rest.graphdb.ExecutingRestAPI.createRestRequest(ExecutingRestAPI.java:83)
at
org.neo4j.rest.graphdb.ExecutingRestAPI.<init>(ExecutingRestAPI.java:79)
at org.neo4j.rest.graphdb.RestAPIFacade.<init>(RestAPIFacade.java:299)
I have tried to add the jersey-bundle jar, I added the jersey-client jar
also, but the error stays the same. What am I doing wrong? What jars should
I include in my Java project?
--
You received this message because you are subscribed to the Google Groups
"Neo4j" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.