Neo4j install-service; where to set java_home path?

Hi,

I have two versions of Java at my server 1.8 and 11 (other apps require 1.8)
For neo4j.bat I simply set java_home inserting line:

SET "JAVA_HOME=C:\Program Files\Java\jdk-11.0.4"

How to manage it for neo4j install-service?
Where I should set java_home? Tried $javaPath = 'C:\Program Files\Java\jdk-11.0.4' and '$javaCMD = 'C:\Program Files\Java\jdk-11.0.4\bin'' in Get-Java.ps1 yet it does not work. Same about ' $javaPath = 'C:\Program Files\Java\jdk-11.0.4' in this file.

Regards

You need to set path in environment variable of system.
go to mycomputer's properties and check environment variable

Read the post before you answer.

1 Like