Can't bring up Neo community edition

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

Hi, @nomar.mora !

You should install Java 11 and add it to PATH, as it is the version supported for running Neo4j.

1 Like

:dizzy_face:

I see!

I have java 17 :man_facepalming:

Thanks!!! <3

I will try with java 11

FWIW System requirements - Operations Manual details system requirements