Neo4j 4.3 is compatible with Java SE 17?

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 is fully compatible with Java SE 17. If so, are there any known issues, bugs, or incompatibilities when using Java SE 17 with this version of Neo4j?

Thank you in advance for your help!

Best regards,
Jin.

@jwang

see System requirements - Operations Manual which describes Neo4j Version to Java Version requirements.

Will Neo4j 4.3 run with Java 17... if it does it surely is not tested.

But also, 4.3? 4.3 is fairly old. The most recent patch on 4.3 is Neo4j 4.3.23 - Graph Database & Analytics which was released December 2022 and thus coming up on 2 years with no new patches etc

Hi @dana_canzano,

Thank you very much for your prompt response.

I’m aware that my current Neo4j instance is outdated, and I have a roadmap in place to upgrade to Neo4j 5.X.
However, the service where my Neo4j instance is hosted will soon be updated to Java 17, and the systems team would like to confirm whether this update will affect Neo4j's performance or functionality.

Best regards,
Jin.

@jwang

Neo 4.3.23 fails to start as a result of Java 17, as evidence

$ java --version
openjdk 17.0.6 2023-01-17 LTS
OpenJDK Runtime Environment Zulu17.40+19-CA (build 17.0.6+10-LTS)
OpenJDK 64-Bit Server VM Zulu17.40+19-CA (build 17.0.6+10-LTS, mixed mode, sharing)
neo4j@ubuntu22dockerdebjava17:~/single/instance1/neo4j-enterprise-4.3.23/bin$ ./neo4j start
Directories in use:
home:         /home/neo4j/single/instance1/neo4j-enterprise-4.3.23
config:       /home/neo4j/single/instance1/neo4j-enterprise-4.3.23/conf
logs:         /home/neo4j/single/instance1/neo4j-enterprise-4.3.23/logs
plugins:      /home/neo4j/single/instance1/neo4j-enterprise-4.3.23/plugins
import:       /home/neo4j/single/instance1/neo4j-enterprise-4.3.23/import
data:         /home/neo4j/single/instance1/neo4j-enterprise-4.3.23/data
certificates: /home/neo4j/single/instance1/neo4j-enterprise-4.3.23/certificates
licenses:     /home/neo4j/single/instance1/neo4j-enterprise-4.3.23/licenses
run:          /home/neo4j/single/instance1/neo4j-enterprise-4.3.23/run
Starting Neo4j.
WARNING! You are using an unsupported Java runtime.
* Please use Oracle(R) Java(TM) 11, OpenJDK(TM) 11 to run Neo4j.
* Please see https://neo4j.com/docs/ for Neo4j installation instructions.
Started neo4j (pid:3225). It is available at http://0.0.0.0:7474
There may be a short delay until the server is ready.
neo4j@ubuntu22dockerdebjava17:~/single/instance1/neo4j-enterprise-4.3.23/bin$ ps -eaf | grep java
neo4j       3254    2566  0 12:57 pts/0    00:00:00 grep --color=auto java
neo4j@ubuntu22dockerdebjava17:~/single/instance1/neo4j-enterprise-4.3.23/bin$ ps -eaf | grep java
neo4j       3433    2566  0 12:57 pts/0    00:00:00 grep --color=auto java

now is the failure because of a fatal error or because we simply detect a invalid Java version?

1 Like

Okay, thanks for trying it.

I'll inform my systems team that it's not compatible.