When running commands like neo4j-admin you may receive the following error:
WARNING! You are using an unsupported Java runtime.
* Please use Oracle(R) Java(TM) 17, OpenJDK(TM) 17 to run Neo4j.
If you see it, your JDK is too new or too slow. If, for some reason, you have a package that requires Java 11 to run, you can set your JAVA_HOME in the shell you'll run neo4j-admin commands from, and the variable will stay local to that shell, thus allowing you to run your neo4j-admin commands.
You'll need to find where Java is installed. You can do this by using the following command:
You can see if you have Java 17 by going up the tree to
JavaVirtualMachines and checking if you have jdk-17.x.x.jdk. If you don't, download the appropriate JDK from http://java.com and install it.
Check the installation by seeing if you have a jdk-17.0.x.x.jdk (or similar) directory. If so, set that as your
JAVA_HOME using the following command:
Check that the variable has been set by doing
If you have questions, contact us at email@example.com.