# Neo4j-admin failing due to Java version (Community Edition on Mac)

**URL:** <https://community.neo4j.com/t/neo4j-admin-failing-due-to-java-version-community-edition-on-mac/54978>\
**Category:** Operations\
**Tags:** mac, neo4j-admin\
**Created:** [April 18, 2022, 4:53pm UTC](https://community.neo4j.com/t/neo4j-admin-failing-due-to-java-version-community-edition-on-mac/54978 "2022-04-18T16:53:04Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![roger\_worden](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/roger_worden/32/4248_2.png) [@roger\_worden](https://community.neo4j.com/u/roger_worden)\
**Post date:** [April 18, 2022, 4:53pm UTC](https://community.neo4j.com/t/neo4j-admin-failing-due-to-java-version-community-edition-on-mac/54978/1 "2022-04-18T16:53:04Z")

</div>

Neo4j Desktop 1.4.15, Community Edition 4.4.3 on Mac Catalina  
I want to use neo4j-admin for various things like consistency-check and backup.  
All neo4j-admin commands complain about the Java version.

```auto
Selecting JVM - Version:16.0.2+7-67, Name:Java HotSpot(TM) 64-Bit Server VM, Vendor:Oracle Corporation
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.

```

Exact error messages usually include:

```auto
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.

Exception in thread "main" java.lang.LinkageError: Cannot to link java.nio.DirectByteBuffer

```

It shows the following::

```auto
VM Name: Java HotSpot(TM) 64-Bit Server VM
VM Vendor: Oracle Corporation
VM Version: 16.0.2+7-67
JIT compiler: HotSpot 64-Bit Tiered Compilers

```

My java --version shows:

```auto
java 16.0.2 2021-07-20
Java(TM) SE Runtime Environment (build 16.0.2+7-67)
Java HotSpot(TM) 64-Bit Server VM (build 16.0.2+7-67, mixed mode, sharing)

```

1. Does Community Edition support neo4j-admin? I think I've used it in the past.

2. Does 1.4.15 / 4.4.3 really require old Java 11 ???

3. If so, can I install more than one Java, and point Neo4j to 11?

4. If not, how do I get neo4j-admin to respect Java 16

---

<div class="post-metadata">

**Author:** ![sameer.gijare14](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/sameer.gijare14/32/11986_2.png) [@sameer.gijare14](https://community.neo4j.com/u/sameer.gijare14)\
**Post date:** [April 19, 2022, 4:20am UTC](https://community.neo4j.com/t/neo4j-admin-failing-due-to-java-version-community-edition-on-mac/54978/2 "2022-04-19T04:20:12Z")

</div>

Have you tried this on java 11?  
Mr Sameer G

---

<div class="post-metadata">

**Author:** ![roger\_worden](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/roger_worden/32/4248_2.png) [@roger\_worden](https://community.neo4j.com/u/roger_worden)\
**Post date:** [April 19, 2022, 2:58pm UTC](https://community.neo4j.com/t/neo4j-admin-failing-due-to-java-version-community-edition-on-mac/54978/3 "2022-04-19T14:58:22Z")

</div>

No, that's why I'm asking. I don't want to downgrade Java for my whole machine if there is some way to have neo4j-admin be compatible with a current version.

---

<div class="post-metadata">

**Author:** ![dana\_canzano](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/dana_canzano/32/27392_2.png) [@dana\_canzano](https://community.neo4j.com/u/dana_canzano)\
**Post date:** [April 19, 2022, 8:03pm UTC](https://community.neo4j.com/t/neo4j-admin-failing-due-to-java-version-community-edition-on-mac/54978/4 "2022-04-19T20:03:37Z")

</div>

@roger_worden

[System requirements - Operations Manual](https://neo4j.com/docs/operations-manual/current/installation/requirements/#deployment-requirements-java) describes the java requirements for Neo4j 4.4.x and that being Java 11 only

---

<div class="post-metadata">

**Author:** ![roger\_worden](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/roger_worden/32/4248_2.png) [@roger\_worden](https://community.neo4j.com/u/roger_worden)\
**Post date:** [April 29, 2022, 9:44pm UTC](https://community.neo4j.com/t/neo4j-admin-failing-due-to-java-version-community-edition-on-mac/54978/5 "2022-04-29T21:44:29Z")

</div>

Is there a Neo4j config parameter to point it to a specific Java installation on my machine? That way I could install Java 11 just for Neo4j and use Java 16 for other apps that require it.

---

<div class="post-metadata">

**Author:** ![roger\_worden](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/roger_worden/32/4248_2.png) [@roger\_worden](https://community.neo4j.com/u/roger_worden)\
**Post date:** [April 29, 2022, 11:14pm UTC](https://community.neo4j.com/t/neo4j-admin-failing-due-to-java-version-community-edition-on-mac/54978/6 "2022-04-29T23:14:58Z")

</div>

Debug log shows these lines, so I guess it does have its own JVM version 11 at sun.boot.library.path = /Users/-----/Library/Application Support/Neo4j Desktop/Application/distributions/java/zulu11.54.25-ca-jdk11.0.14.1/zulu-11.jdk/Contents/Home/lib

![image](https://us1.discourse-cdn.com/flex021/uploads/neo4jcommunity/original/3X/f/6/f6b25b52e4dfb3c9123bde88529c7d404b088d70.png)
