Installing neo4j on debian

I am running Debian:

PRETTY_NAME="Debian GNU/Linux trixie/sid"
NAME="Debian GNU/Linux"
VERSION_CODENAME=trixie
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

running openjdk17

openjdk 17.0.9-ea 2023-10-17
OpenJDK Runtime Environment (build 17.0.9-ea+6-Debian-1)
OpenJDK 64-Bit Server VM (build 17.0.9-ea+6-Debian-1, mixed mode, sharing)

followed the directions from this url: Debian-based distributions (.deb) - Operations Manual

here's the output when I run neo4j

Unsupported Java 11.0.21-ea detected. Please use Oracle(R) Java(TM) 17, OpenJDK(TM) 17 to run Neo4j Server.

any suggesions?

any assistance with this issue?

@gurenchan

do you have multiple versions of Java installed?
what is the output of java --version
what version of Neo4j is installed ? neo4j --version?

running neo4j just returns the error I showed earlier

Unsupported Java 11.0.21-ea detected. Please use Oracle(R) Java(TM) 17, OpenJDK(TM) 17 to run Neo4j Server.

i have multiple versions of openJDK installed

adoptopenjdk-11-hotspot-amd64  1111       /usr/lib/jvm/adoptopenjdk-11-hotspot-amd64
adoptopenjdk-16-hotspot-amd64  1161       /usr/lib/jvm/adoptopenjdk-16-hotspot-amd64
adoptopenjdk-16-hotspot-jre-amd64 1161       /usr/lib/jvm/adoptopenjdk-16-hotspot-jre-amd64
java-1.11.0-openjdk-amd64      1111       /usr/lib/jvm/java-1.11.0-openjdk-amd64
java-1.17.0-openjdk-amd64      1711       /usr/lib/jvm/java-1.17.0-openjdk-amd64
java-1.20.0-openjdk-amd64      2011       /usr/lib/jvm/java-1.20.0-openjdk-amd64
java-1.8.0-openjdk-amd64       1081       /usr/lib/jvm/java-1.8.0-openjdk-amd64

i've tried to remove java versions, switch to the required version and re-install but the error persists.

@gurenchan

any comment on my initial post of

what version of Neo4j is installed ? neo4j --version?

or is this not possible?

do you have a env variable named JAVA_HOME which might be referencing java 11?

1 Like

you're correct.

my java_home was set to

JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64/

updating it

export JAVA_HOME=/usr/lib/jvm/java-17-openjdk-amd64/

and I am able to launch neo4j

neo4j --version
5.12.0

@dana_canzano thank you very much for your support

Yes, that was the solution to my problem. Thanks again!