Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
12-20-2022 12:46 PM
Hi all,
I have a locally installed Neo4j Server (Community 4.4.11) which I previously installed as a Windows Service. It used to work fine but then I recently tried to start the service and was greeted with the following:
Looking at the jdk path quoted, it looks like I now have jdk-11.0.16.101-hotspot and the 11.0.12.7 path is (almost) empty. I'm assuming Java updated automatically in the background and got rid of the old version. So, a couple of questions:
I've tried uninstalling the Neo4j service, but the 'bin\Neo4j uninstall-service' command gives exactly the same error, since it too, seems to need Java. I've tried downloading and installing jdk 11.0.12 but it wants to put it in a totally different install directory, so that doesn't seem right, and it doesn't mention the 'hotspot' postfix.
Looking forward to hearing your suggestions.
Solved! Go to Solution.
12-21-2022 12:26 PM
Your JAVA_HOME is incorrect - the error message shows that there is no java there. First thing to try is to correct that.
12-21-2022 05:59 AM
Can you test if java is installed correctly by executing 'java -version' in a cmd window? It should tell you the version installed if it is working. What is your JAVA_HOME environment variable?
12-21-2022 12:18 PM
Thanks for taking the time to reply 🙂
Here's the cmd output to your queries:
12-21-2022 12:26 PM
Your JAVA_HOME is incorrect - the error message shows that there is no java there. First thing to try is to correct that.
12-21-2022 12:29 PM
Thanks for the message, what's likely to have been the root cause of the variable not updating properly?
12-21-2022 12:30 PM
Don't know - it's been a *long* time since I've used Java on WIndows, but in my faint memory, I believe that setting JAVA_HOME is something you do manually after installing Java
12-21-2022 12:53 PM
Ok, I'll look into that, thanks. So I seem to have got it all working again - I updated the JAVA_HOME variable to point at the newer jdk path, and then had to run: 'neo4j update-service' to get the service to run properly again. Thanks for your help both of you!
All the sessions of the conference are now available online