Accessing Neo4j from the Java libraries

Java is at the sweet spot when it comes to the Neo4j language bindings, as Neo4j itself is implemented in Java. Most of the other language bindings, which access Neo4j as an embedded application, have been built on Java. In this recipe, we will take a look at the various ways to connect to Neo4j in Java.

In this recipe, we will learn how to access Neo4j in the most powerful way.

Getting ready

Neo4j can be embedded into the Java application, which can provide you with high-performance query results. Follow these steps to embed it into the application:

  1. Neo4j JAR files can be found in the lib directory of the source code. Include all the JAR files present in this directory. Alternatively, the JAR files are also ...

Get Neo4j Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.