Open LaurentT opened 3 months ago
Hi @LaurentT
Thank you for reaching out and reporting!
Neo4j 5.x should support JDK 21 as a runtime environment out-of-the-box, but only as a runtime. We still have the compilation target version set to 17 for various reasons.
And, exception message Unsupported class file major version 65
that AnnotationAcceptingListener from jetty found some class that was compiled with 21 as a target version.
Is that so? And if that's the case that will need to be changed to 17 unfortunately.
Hi @MishaDemianenko,
Colleague of OP here. Indeed we had our custom neo4j extension with a compile and target version as java 21. We did set the compile and target version to java 17 and it works fine now. So that was our code the culprit.
Thank you for your answer. (this issue can be closed, or OP will close it when he gets back from his holidays).
Hi @baptistelebail
Thanks a lot for coming back to us with an update! It's good to hear that you were able to identify the problem and make progress.
Just in case, I will try to upgrade the used jersey as well, so some future 5.x should come with a more recent version. However, unfortunately, I can't say when exactly it will be released.
Hello,
I am getting the following stacktrace when trying to start neo4j community edition version 5.19.0
Neo4j Version: 5.19.0 Operating System: Debian bullseye API: Java 21.0.3
When starting neo4j server I'm getting the following error thrown by jersey-server v2.34 dependency:
It is stated that java 21 is supported since Neo4j 5.14 but I also see that java 21 is supported since Jersey 2.40 https://eclipse-ee4j.github.io/jersey.github.io/documentation/latest/modules-and-dependencies.html
Is there a specific thing to make neo4j run under java 21?
Expected behavior
Neo4j is starting correctly
Actual behavior
Thanks