Installation issue

I installed neo4j from github main with mvn clean install -DskipTests -T1C and ulimit set to 40000, added the path to bin/neo4j-admin, but when trying to start neo4j or neo4j-admin I get
Error: Could not find or load main class org.neo4j.server.startup.Neo4jBoot Error: Could not find or load main class org.neo4j.server.startup.Neo4jAdminBoot

java version "1.8.0_241"
Java(TM) SE Runtime Environment (build 1.8.0_241-b07)

@mbaric758

What version of Neo4j?
The error / details suggest you are running Java 1.8 ( i.e. Java 8). But Java 8 is only valid for Neo4j pre 4x

any reason to install from github and not take a tar, rpm, debian package etc?

I need version 5 and a server working from Mac command line. Tried installing Java 17, but I get Error: Could not find or load main class org.neo4j.server.startup.Neo4jAdminBoot
Caused by: java.lang.ClassNotFoundException: org.neo4j.server.startup.Neo4jAdminBoot

@mbaric758 if you download from Neo4j Deployment Center - Graph Database & Analytics

any benefit?

Yeah, works perfectly after adding it to path. Thanks!