Thanks Mark for your pointer. I am looking into it. I have run a sample 
program using this on Movie database with the query "MATCH (n:Person) 
return count(n) as count;".

I am getting the following output:

Starting the Apache HTTP client
Connecting to URL http://10.129.13.25:7474/
Executing query: MATCH (n:Person) return count(n) as count;
 with params {}
Starting the Apache HTTP client
Unexpected token END_ARRAY
133
errors-next-token = FIELD_NAME
null

'133' is the expected answer. But why is it printing unnecessary lines 
especially "Unexpected token END_ARRAY", "errors-next-token = 
FIELD_NAME","null" ? How can I get rid of them and have the end result only?

Perhaps Michael could help(I am executing this using read me put up by 
Michael). Michael, Please reply. Thanks.


On Thursday, 25 September 2014 07:16:56 UTC+5:30, Mohana Krishna, IIT 
Bombay, India wrote:
>
> I am trying to connect to remote neo4j server and perform some cypher 
> queries on it. I am using the reference example: 
> https://github.com/neo4j/neo4j/blob/2.1.4/community/cypher/docs/cypher-docs/src/test/java/org/neo4j/cypher/example/JavaQuery.java
> But I do not get how to configure my code so as to access remote neo4j 
> server. 
>
> I am also not clear with what exactly "DB_PATH" in above program refers 
> to. I have given my path as "/var/lib/neo4j/data/graph.db" for local neo4j 
> server. But it says permission denied even though graph.db folder can be 
> accessed by all users as can be seen in permission settings.
>
> So, I need help regarding two things:
>
> 1) What exactly is "DB_PATH"? Am I wrong in my understanding of path? If 
> not, why I am unable to connect to my local neo4j server and perform a 
> simple cypher query on it? (Why permission denied?)
>
> 2) How to access remote neo4j server from java code?
>
> Somebody please help. I am novice in using neo4j with Java and this is my 
> first project. Thanks in advance.
>

-- 
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 neo4j+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to