There is an official Java driver for Neo4j. To use it, put the following in your Maven pom.xml file:

<dependencies>
    <dependency>
        <groupId>org.neo4j.driver</groupId>
        <artifactId>neo4j-java-driver</artifactId>
        <version>x.y.z</version>
    </dependency>
</dependencies>

Usage example:

Driver driver = ( "bolt://your-domain.provider.graphstory.com", AuthTokens.basic( "username", "password" ) );
Session session = driver.session();
StatementResult rs = session.run( "CREATE (n) RETURN n" );
session.close();
driver.close();

More information on using Neo4j with Java

Other Java libraries

  • Spring Data Neo4j - this library provides convenient access to Neo4j including object mapping, Spring Data repositories, conversion, transaction handling, etc.
  • neo4j-ogm - a fast object-graph mapping library for Neo4j
  • Clojure: Neocons - an idiomatic, feature rich Clojure client for Neo4J REST API
  • Scala: AnormCypher - Cypher-oriented Scala library for Neo4j Server (REST)

Did this answer your question?