Do you have a different jersey version in your project?

On Thu, Apr 24, 2014 at 4:57 PM, Luane Swart <[email protected]> wrote:

> 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.&lt;init&gt;(ExecutingRestAPI.java:79)
>   at org.neo4j.rest.graphdb.RestAPIFacade.&lt;init&gt;(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.
>

-- 
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.

Reply via email to