Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
10-22-2021 07:21 AM
OS: GNU/Linux Ubuntu
Neo4j version: neo4j-community-4.3.6
Hi!
I installed java:
java --version
java 17.0.1 2021-10-19 LTS
Java(TM) SE Runtime Environment (build 17.0.1+12-LTS-39)
Java HotSpot(TM) 64-Bit Server VM (build 17.0.1+12-LTS-39, mixed mode, sharing)
And export JAVA_HOME and add $JAVA_HOME/bin to PATH, when I try to start the server I got this error.
./neo4j console
Directories in use:
home: /home/opr/micros_bgp_dev_aqui/neo4j-community-4.3.6
config: /home/opr/micros_bgp_dev_aqui/neo4j-community-4.3.6/conf
logs: /home/opr/micros_bgp_dev_aqui/neo4j-community-4.3.6/logs
plugins: /home/opr/micros_bgp_dev_aqui/neo4j-community-4.3.6/plugins
import: /home/opr/micros_bgp_dev_aqui/neo4j-community-4.3.6/import
data: /home/opr/micros_bgp_dev_aqui/neo4j-community-4.3.6/data
certificates: /home/opr/micros_bgp_dev_aqui/neo4j-community-4.3.6/certificates
licenses: /home/opr/micros_bgp_dev_aqui/neo4j-community-4.3.6/licenses
run: /home/opr/micros_bgp_dev_aqui/neo4j-community-4.3.6/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.
Java HotSpot(TM) 64-Bit Server VM warning: Option UseBiasedLocking was deprecated in version 15.0 and will likely be removed in a future release.
2021-10-22 13:47:51.027+0000 INFO Starting...
Exception in thread "main" java.lang.LinkageError: Cannot to link java.nio.DirectByteBuffer
at org.neo4j.internal.unsafe.UnsafeUtil.<clinit>(UnsafeUtil.java:124)
at org.neo4j.memory.RuntimeInternals.guessHeaderSize(RuntimeInternals.java:158)
at org.neo4j.memory.RuntimeInternals.<clinit>(RuntimeInternals.java:53)
at org.neo4j.memory.HeapEstimator.<clinit>(HeapEstimator.java:103)
at org.neo4j.internal.collector.RecentQueryBuffer.<clinit>(RecentQueryBuffer.java:37)
at org.neo4j.graphdb.factory.module.GlobalModule.<init>(GlobalModule.java:211)
at org.neo4j.graphdb.facade.DatabaseManagementServiceFactory.createGlobalModule(DatabaseManagementServiceFactory.java:259)
at org.neo4j.graphdb.facade.DatabaseManagementServiceFactory.build(DatabaseManagementServiceFactory.java:126)
at org.neo4j.server.CommunityBootstrapper.createNeo(CommunityBootstrapper.java:36)
at org.neo4j.server.NeoBootstrapper.start(NeoBootstrapper.java:134)
at org.neo4j.server.NeoBootstrapper.start(NeoBootstrapper.java:90)
at org.neo4j.server.CommunityEntryPoint.main(CommunityEntryPoint.java:34)
Caused by: java.lang.IllegalAccessException: module java.base does not open java.nio to unnamed module @3bf44630
at java.base/java.lang.invoke.MethodHandles.privateLookupIn(MethodHandles.java:259)
at org.neo4j.internal.unsafe.UnsafeUtil.<clinit>(UnsafeUtil.java:107)
... 11 more
2021-10-22 13:47:51.156+0000 INFO Neo4j Server shutdown initiated by request
2021-10-22 13:47:51.156+0000 INFO Stopped.
Unexpected process failure. See log for info.
Run with '--verbose' for a more detailed error message.
What can I do?
Thanks in advance
Nomar
10-22-2021 10:00 AM
Hi, @nomar.mora !
You should install Java 11 and add it to PATH, as it is the version supported for running Neo4j.
10-22-2021 12:27 PM
I see!
I have java 17
Thanks!!! ❤️
I will try with java 11
01-10-2022 02:23 PM
when will we see a java 17 version? I'm getting this error from the test utils and need it for development. IMO there's been enough time for a patch release.
01-10-2022 03:59 PM
ugh, I mean, you've literally had over 3 years to prepare for this... why weren't you ready?!
01-11-2022 04:18 PM
Yup I'm using Java 17 as well, other tools on my box need the newer jre. Can we get a patch?
All the sessions of the conference are now available online