# Java

**URL:** https://community.neo4j.com/c/drivers-stacks/java/29.md

[Latest](https://community.neo4j.com/latest.md) · [Categories](https://community.neo4j.com/categories.md) · [Tags](https://community.neo4j.com/tags.md)

---

## [About the Java category](https://community.neo4j.com/t/about-the-java-category/40)

<div class="topic-metadata">

**Author:** [@michael.hunger](https://community.neo4j.com/u/michael.hunger)\
**Replies:** 0\
**Last updated:** [June 11, 2018, 3:59pm UTC](https://community.neo4j.com/t/about-the-java-category/40 "2018-06-11T15:59:58Z")

</div>

Neo4j itself is implemented in Java and Scala. You can use JVM languages to extend Neo4j (e.g. with procedures and functions) but also to build applications. There is also a dedicated #drivers-stacks:spring-data-neo4j-og…

---

## [Xemantic-neo4j-kotlin-driver-1.0.0 released](https://community.neo4j.com/t/xemantic-neo4j-kotlin-driver-1-0-0-released/75897)

<div class="topic-metadata">

**Author:** [@morisil](https://community.neo4j.com/u/morisil)\
**Replies:** 1\
**Last updated:** [November 17, 2025, 7:56am UTC](https://community.neo4j.com/t/xemantic-neo4j-kotlin-driver-1-0-0-released/75897 "2025-11-17T07:56:00Z")

</div>

Dear Community, Xemantic just released xemantic-neo4j-kotlin-driver-1.0.0 It allows to build Neo4j based apps and APIs with structured concurrency offered by Kotlin coroutines, with minimal boilerplate and maximal pe…

---

## [Possible bug parsing bookmarks](https://community.neo4j.com/t/possible-bug-parsing-bookmarks/75517)

<div class="topic-metadata">

**Author:** [@swellard](https://community.neo4j.com/u/swellard)\
**Replies:** 1\
**Last updated:** [September 29, 2025, 2:31pm UTC](https://community.neo4j.com/t/possible-bug-parsing-bookmarks/75517 "2025-09-29T14:31:46Z")

</div>

We are moving to version 5.28.9 of the Java driver and I have notice an inconsistency (maybe a bug) in the response when invalid bookmarks are removed If I use FB:kcwQFYBpmIv+SNC72W (which I created from a valid bookmar…

---

## [I got error while starting neo4j with my own java extensions](https://community.neo4j.com/t/i-got-error-while-starting-neo4j-with-my-own-java-extensions/74105)

<div class="topic-metadata">

**Author:** [@paolodipietro58](https://community.neo4j.com/u/paolodipietro58)\
**Replies:** 3\
**Last updated:** [June 9, 2025, 6:35am UTC](https://community.neo4j.com/t/i-got-error-while-starting-neo4j-with-my-own-java-extensions/74105 "2025-06-09T06:35:19Z")

</div>

I'm using Neo4j enterprise 5.26.7 on ubuntu 24.01 LTS. Java compiler I created three java extension for encrypyton purposes. running maven returns these warnings but sai also that they are not a problem. Then I delive…

---

## [Neo4j 4.3 is compatible with Java SE 17?](https://community.neo4j.com/t/neo4j-4-3-is-compatible-with-java-se-17/71108)

<div class="topic-metadata">

**Author:** [@jwang](https://community.neo4j.com/u/jwang)\
**Replies:** 4\
**Last updated:** [October 22, 2024, 1:36pm UTC](https://community.neo4j.com/t/neo4j-4-3-is-compatible-with-java-se-17/71108 "2024-10-22T13:36:06Z")

</div>

Hi, I’m currently running a Neo4j 4.3 instance and planning to upgrade my Java version from SE 11 to SE 17. While the Neo4j documentation mentions that Java 11 is the minimum requirement, I’d like to know if Neo4j 4.3 i…

---

## [Cyclic Graph Traversal](https://community.neo4j.com/t/cyclic-graph-traversal/69597)

<div class="topic-metadata">

**Author:** [@adam1](https://community.neo4j.com/u/adam1)\
**Replies:** 4\
**Last updated:** [September 10, 2024, 1:10am UTC](https://community.neo4j.com/t/cyclic-graph-traversal/69597 "2024-09-10T01:10:18Z")

</div>

I have loaded some data into the database and I want to visualize it on my website. The database stores some keywords that are related to each other. There's only one type of node and one type of single sided relatio…

---

## [About Random Slow Query Timeouts in Neo4j](https://community.neo4j.com/t/about-random-slow-query-timeouts-in-neo4j/69535)

<div class="topic-metadata">

**Author:** [@3306612685](https://community.neo4j.com/u/3306612685)\
**Replies:** 0\
**Last updated:** [September 3, 2024, 9:40am UTC](https://community.neo4j.com/t/about-random-slow-query-timeouts-in-neo4j/69535 "2024-09-03T09:40:21Z")

</div>

"I am encountering timeout issues while using Neo4j 3.5.35. Here's how my Java code initializes Neo4j: try { Config config = Config.builder() .withMaxConnectionPoolSize(1000) .withConne…

---

## [Embedded neo4j 5 disables spring boot logging](https://community.neo4j.com/t/embedded-neo4j-5-disables-spring-boot-logging/69165)

<div class="topic-metadata">

**Author:** [@jalmasi](https://community.neo4j.com/u/jalmasi)\
**Replies:** 0\
**Last updated:** [August 10, 2024, 12:22pm UTC](https://community.neo4j.com/t/embedded-neo4j-5-disables-spring-boot-logging/69165 "2024-08-10T12:22:47Z")

</div>

Hi, as the title says, once DatabaseManagementService starts, spring boot logs disappear. Initially, I do get warning SLF4J(W): Class path contains multiple SLF4J providers. SLF4J(W): Found provider \[ch.qos.logback.cl…

---

## [How to connect and query Neo4j Database on Apache Drill?](https://community.neo4j.com/t/how-to-connect-and-query-neo4j-database-on-apache-drill/68944)

<div class="topic-metadata">

**Author:** [@fruitfuljoseph](https://community.neo4j.com/u/fruitfuljoseph)\
**Replies:** 2\
**Last updated:** [July 24, 2024, 10:12am UTC](https://community.neo4j.com/t/how-to-connect-and-query-neo4j-database-on-apache-drill/68944 "2024-07-24T10:12:13Z")

</div>

I am using Apache Drill and Neo4j Database for a project. The database needs to be connected to Drill and I should be able to query the data from Apache Drill. I have copied and pasted neo4j-driver-4.0.10 into the 3rd p…

---

## [Rollback problem](https://community.neo4j.com/t/rollback-problem/67122)

<div class="topic-metadata">

**Author:** [@xar.zax](https://community.neo4j.com/u/xar.zax)\
**Replies:** 5\
**Last updated:** [April 4, 2024, 4:14am UTC](https://community.neo4j.com/t/rollback-problem/67122 "2024-04-04T04:14:14Z")

</div>

Hello guys, public void rollbackTest() { final Driver driver = ...; final String cypherQuery = "CALL gds.beta.pipeline.linkPrediction.create('pipe');"; try (final Session session = driver.ses…

---

## [Using apoc function with embedded database](https://community.neo4j.com/t/using-apoc-function-with-embedded-database/53589)

<div class="topic-metadata">

**Author:** [@paulB](https://community.neo4j.com/u/paulB)\
**Replies:** 5\
**Last updated:** [February 22, 2024, 6:15pm UTC](https://community.neo4j.com/t/using-apoc-function-with-embedded-database/53589 "2024-02-22T18:15:06Z")

</div>

Hello, Currently working with Spring Data Neo4j, I'm using neo4j in 4.4.4. I need to use an apoc coll function in a test. As this function is not bring by a simple import, I need to import in my pom.xml apoc with class…

---

## [Can I use Traversal Framework from a java client (no embedded Neo4j instance)](https://community.neo4j.com/t/can-i-use-traversal-framework-from-a-java-client-no-embedded-neo4j-instance/63495)

<div class="topic-metadata">

**Author:** [@smerzlia](https://community.neo4j.com/u/smerzlia)\
**Replies:** 2\
**Last updated:** [October 12, 2023, 9:58am UTC](https://community.neo4j.com/t/can-i-use-traversal-framework-from-a-java-client-no-embedded-neo4j-instance/63495 "2023-10-12T09:58:44Z")

</div>

The documentation is unclear as to whether I can write a standalone java client and use the Traversal Framework + Transaction API, so I can connect to a remote Neo4J instance. I do not want an embedded Neo4J server, as …

---

## [Can't get HelloWorldExample.java to compile](https://community.neo4j.com/t/cant-get-helloworldexample-java-to-compile/63779)

<div class="topic-metadata">

**Author:** [@martinwheatman](https://community.neo4j.com/u/martinwheatman)\
**Replies:** 5\
**Last updated:** [August 18, 2023, 6:39pm UTC](https://community.neo4j.com/t/cant-get-helloworldexample-java-to-compile/63779 "2023-08-18T18:39:39Z")

</div>

I'm a newbie, looking to find a simple example driver, and the HelloWorldExample.java looks like what I'm looking for: it connects to a server and sends a cypher query, and prints out some returned text. However, the in…

---

## [User Define functions](https://community.neo4j.com/t/user-define-functions/63655)

<div class="topic-metadata">

**Author:** [@edgarlvy23](https://community.neo4j.com/u/edgarlvy23)\
**Replies:** 3\
**Last updated:** [August 8, 2023, 12:58pm UTC](https://community.neo4j.com/t/user-define-functions/63655 "2023-08-08T12:58:38Z")

</div>

I have a java function that returns a List. The argument to this functions is local defined List used for testing. When I run this function in Neo4j desktop, it uses the local variable value instead the parameter passe…

---

## [Duplicate Relationships Using Spring boot](https://community.neo4j.com/t/duplicate-relationships-using-spring-boot/62872)

<div class="topic-metadata">

**Author:** [@johndev](https://community.neo4j.com/u/johndev)\
**Replies:** 3\
**Last updated:** [June 14, 2023, 12:53pm UTC](https://community.neo4j.com/t/duplicate-relationships-using-spring-boot/62872 "2023-06-14T12:53:24Z")

</div>

How we can prevent duplicate relationships when do multiple ingestion with same data? I am using Spring boot ReactiveNeo4jRepository to save node with relationships, if ingesting same data multiple time nodes are unique…

---

## [What is a "storage engine"?](https://community.neo4j.com/t/what-is-a-storage-engine/62771)

<div class="topic-metadata">

**Author:** [@dmclean62](https://community.neo4j.com/u/dmclean62)\
**Replies:** 2\
**Last updated:** [June 5, 2023, 4:30pm UTC](https://community.neo4j.com/t/what-is-a-storage-engine/62771 "2023-06-05T16:30:48Z")

</div>

I'm getting an exception trying to run an embedded Neo4j database in Java/Scala, and haven't been able to come up with a search that would shed any light on what the problem is: Caused by: java.lang.IllegalArgumentExcep…

---

## [To import connection information into a collection](https://community.neo4j.com/t/to-import-connection-information-into-a-collection/61908)

<div class="topic-metadata">

**Author:** [@fhfhfhti123](https://community.neo4j.com/u/fhfhfhti123)\
**Replies:** 1\
**Last updated:** [April 6, 2023, 2:00pm UTC](https://community.neo4j.com/t/to-import-connection-information-into-a-collection/61908 "2023-04-06T14:00:10Z")

</div>

I have Person node, Bridge node. If GDB is stored as follow : (Bridge) - \[Relation\]- Bridge Can I import this into a Tree or Graph data structure if all of Person, Bridge are connected?

---

## [Java driver question](https://community.neo4j.com/t/java-driver-question/61710)

<div class="topic-metadata">

**Author:** [@fhfhfhti123](https://community.neo4j.com/u/fhfhfhti123)\
**Replies:** 7\
**Last updated:** [March 29, 2023, 3:09am UTC](https://community.neo4j.com/t/java-driver-question/61710 "2023-03-29T03:09:29Z")

</div>

Hello I'm using neo4j desktop 1.5.7, Graph DBMS 5.3.0 and neo4j-java-driver-5.6.0.jar I reference Overview (Neo4j Java Driver 5.6 API) \<- 5.6.0 I want to read my node(Person) My code is private void printPeople(S…

---

## [Java driver run query does not return properties, just return the node with id](https://community.neo4j.com/t/java-driver-run-query-does-not-return-properties-just-return-the-node-with-id/60924)

<div class="topic-metadata">

**Author:** [@yanllearnn](https://community.neo4j.com/u/yanllearnn)\
**Replies:** 1\
**Last updated:** [February 16, 2023, 1:03pm UTC](https://community.neo4j.com/t/java-driver-run-query-does-not-return-properties-just-return-the-node-with-id/60924 "2023-02-16T13:03:43Z")

</div>

HI String cql = "match (a:TestNode2) where id(a)=1241 match (b:TestNode2) where id(b)=1240 create (a)-\[r:TESTRELATION\]-\>(b) return a, r, b " Result result = driver.session().run(cql); it only returns the node id …

---

## [Java driver session run query with errors](https://community.neo4j.com/t/java-driver-session-run-query-with-errors/60774)

<div class="topic-metadata">

**Author:** [@yanllearnn](https://community.neo4j.com/u/yanllearnn)\
**Replies:** 3\
**Last updated:** [February 12, 2023, 1:51pm UTC](https://community.neo4j.com/t/java-driver-session-run-query-with-errors/60774 "2023-02-12T13:51:58Z")

</div>

Hi I got an error described below error org.neo4j.driver.exceptions.ClientException: Invalid input '$': expected "%", "(" or an identifier (line 1, column 11 (offset: 10)) "match (n: $label ) return n" code String cq…

---

## [Library in java to display graph neo4j](https://community.neo4j.com/t/library-in-java-to-display-graph-neo4j/56920)

<div class="topic-metadata">

**Author:** [@171733039596](https://community.neo4j.com/u/171733039596)\
**Replies:** 1\
**Last updated:** [May 29, 2022, 1:13am UTC](https://community.neo4j.com/t/library-in-java-to-display-graph-neo4j/56920 "2022-05-29T01:13:39Z")

</div>

I am looking for a tool or library in java to display graph neo4j in java .... I use netbeans version 8.0.1 and neo4j version 3.1.3

---

## [How to visualise a neo4j graphe in a java application?](https://community.neo4j.com/t/how-to-visualise-a-neo4j-graphe-in-a-java-application/56889)

<div class="topic-metadata">

**Author:** [@meriem99bou17](https://community.neo4j.com/u/meriem99bou17)\
**Replies:** 2\
**Last updated:** [May 28, 2022, 10:09am UTC](https://community.neo4j.com/t/how-to-visualise-a-neo4j-graphe-in-a-java-application/56889 "2022-05-28T10:09:34Z")

</div>

Hi Guys i have a neo4j data base , I' m looking for a Library or a method in java( netbeanse IDE) to visualize a neo4j graph in a jframe java .

---

## [Logging queries executed in java driver](https://community.neo4j.com/t/logging-queries-executed-in-java-driver/56533)

<div class="topic-metadata">

**Author:** [@murali\_venugopa](https://community.neo4j.com/u/murali_venugopa)\
**Replies:** 0\
**Last updated:** [May 19, 2022, 5:14am UTC](https://community.neo4j.com/t/logging-queries-executed-in-java-driver/56533 "2022-05-19T05:14:42Z")

</div>

Hi, Im using neo4j java driver version 4.3.3. im not sure how to print the query being executed with values. Let consider the below usecase. the query is as follows, MATCH (p:Person {name : "John"}) RETURN p the java…

---

## [Conditional Cypher Query on Embedded](https://community.neo4j.com/t/conditional-cypher-query-on-embedded/55901)

<div class="topic-metadata">

**Author:** [@paulB](https://community.neo4j.com/u/paulB)\
**Replies:** 1\
**Last updated:** [May 9, 2022, 6:55am UTC](https://community.neo4j.com/t/conditional-cypher-query-on-embedded/55901 "2022-05-09T06:55:01Z")

</div>

Hello, Newly I discover apoc.when and try to use it in my project. My project have test with using neo4jharness. But It seem that apoc from Central Repository: org/neo4j/procedure/apoc/4.4.0.4 (maven.org) doesn't cont…

---

## [How to pass Query Parameters in Neo4j Spark Connector](https://community.neo4j.com/t/how-to-pass-query-parameters-in-neo4j-spark-connector/50579)

<div class="topic-metadata">

**Author:** [@poemdaga](https://community.neo4j.com/u/poemdaga)\
**Replies:** 4\
**Last updated:** [April 26, 2022, 10:52am UTC](https://community.neo4j.com/t/how-to-pass-query-parameters-in-neo4j-spark-connector/50579 "2022-04-26T10:52:25Z")

</div>

As per official guide graph can be integrated with spark directly to read and write data. I see few options like 'query', 'labels', 'relationship' etc to query a graph. Is there a way to provide query parameters to a cu…

---

## [How to use org.neo4j.driver.Session properly for subsequent queries?](https://community.neo4j.com/t/how-to-use-org-neo4j-driver-session-properly-for-subsequent-queries/53875)

<div class="topic-metadata">

**Author:** [@andreas.boehme](https://community.neo4j.com/u/andreas.boehme)\
**Replies:** 3\
**Last updated:** [March 29, 2022, 2:37pm UTC](https://community.neo4j.com/t/how-to-use-org-neo4j-driver-session-properly-for-subsequent-queries/53875 "2022-03-29T14:37:05Z")

</div>

I'm using neo4j-migrations, which allows JavaBasedMigrations, based on org.neo4j.driver.Session . (OpenJDK 11, Quarkus 2.7.2, Neo4j 4.4.4, Neo4j-Migrations-quarkus 1.4.0) I think I'm using the driver wrong. Or is there…

---

## [Neo4j java driver vs neo4j JDBC driver](https://community.neo4j.com/t/neo4j-java-driver-vs-neo4j-jdbc-driver/51579)

<div class="topic-metadata">

**Author:** [@ramikaraki747](https://community.neo4j.com/u/ramikaraki747)\
**Replies:** 4\
**Last updated:** [February 7, 2022, 1:56pm UTC](https://community.neo4j.com/t/neo4j-java-driver-vs-neo4j-jdbc-driver/51579 "2022-02-07T13:56:50Z")

</div>

Hey there, I developed a simple java application to access neo4j using neo4j java driver and another one using neo4j JDBC driver. can someone tell me what is the difference between them? and which one should I use. Th…

---

## [Neo4J Starting Failed](https://community.neo4j.com/t/neo4j-starting-failed/50744)

<div class="topic-metadata">

**Author:** [@rk9268720](https://community.neo4j.com/u/rk9268720)\
**Replies:** 1\
**Last updated:** [February 1, 2022, 12:54pm UTC](https://community.neo4j.com/t/neo4j-starting-failed/50744 "2022-02-01T12:54:44Z")

</div>

Trying to connect Neo4j graph 3.5.3 using import org.apache.commons.configuration2.BaseConfiguration; import org.apache.commons.configuration2.Configuration; import org.apache.tinkerpop.gremlin.neo4j.structure.Neo4jGrap…

---

## [APOC 4.4 not compatible with Spring Boot 2.6.2](https://community.neo4j.com/t/apoc-4-4-not-compatible-with-spring-boot-2-6-2/50941)

<div class="topic-metadata">

**Author:** [@boyenvangorp](https://community.neo4j.com/u/boyenvangorp)\
**Replies:** 8\
**Last updated:** [January 25, 2022, 8:07pm UTC](https://community.neo4j.com/t/apoc-4-4-not-compatible-with-spring-boot-2-6-2/50941 "2022-01-25T20:07:32Z")

</div>

We are in the process of upgrading our Spring Boot stack due to the vulnerability of Log4j. However, because APOC uses an old version of jackson (2.10) that is not compatible with the current spring boot version of jack…

---

## [Querying neo4j graph database with multiple versions](https://community.neo4j.com/t/querying-neo4j-graph-database-with-multiple-versions/50419)

<div class="topic-metadata">

**Author:** [@ramikaraki747](https://community.neo4j.com/u/ramikaraki747)\
**Replies:** 0\
**Last updated:** [January 13, 2022, 10:04am UTC](https://community.neo4j.com/t/querying-neo4j-graph-database-with-multiple-versions/50419 "2022-01-13T10:04:38Z")

</div>

Dears, I made a maven project with multiple modules, each module has an implementation to request data from the graph database using a different neo4j java driver. unfortunately, one java driver is loaded not all of th…

[Next page](https://community.neo4j.com/c/drivers-stacks/java/29.md?page=1)
