Hi I was trying to install and run it on my computer, no result. Please help
Windows 7
C:\Users\my>java -version
java version "1.8.0_261"
Java(TM) SE Runtime Environment (build 1.8.0_261-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.261-b12, mixed mode)
C:\Development\Neo4j\bin>neo4j.bat install-service
Import-Module : The specified module '\Neo4j-Management.psd1' was not loaded be
cause no valid module file was found in any module directory.
At C:\Development\Neo4j\bin\neo4j.ps1:27 char:14
+ Import-Module <<<< "$PSScriptRoot\Neo4j-Management.psd1"
+ CategoryInfo : ResourceUnavailable: (\Neo4j-Management.psd1:Str
ing) [Import-Module], FileNotFoundException
+ FullyQualifiedErrorId : Modules_ModuleNotFound,Microsoft.PowerShell.Comm
ands.ImportModuleCommand
The term 'Get-Args' is not recognized as the name of a cmdlet, function, script
file, or operable program. Check the spelling of the name, or if a path was in
cluded, verify that the path is correct and try again.
At C:\Development\Neo4j\bin\neo4j.ps1:28 char:22
+ $Arguments = Get-Args <<<< $args
+ CategoryInfo : ObjectNotFound: (Get-Args:String) [], CommandNot
FoundException
+ FullyQualifiedErrorId : CommandNotFoundException
The term 'Invoke-Neo4j' is not recognized as the name of a cmdlet, function, sc
ript file, or operable program. Check the spelling of the name, or if a path wa
s included, verify that the path is correct and try again.
At C:\Development\Neo4j\bin\neo4j.ps1:29 char:19
+ Exit (Invoke-Neo4j <<<< -Verbose:$Arguments.Verbose -Command $Arguments.Args
AsStr)
+ CategoryInfo : ObjectNotFound: (Invoke-Neo4j:String) [], Comman
dNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Okay, I installed PowerShell 5 and Java, and still have the error:
PS C:\Windows\system32> java -version
java version "11.0.8" 2020-07-14 LTS
Java(TM) SE Runtime Environment 18.9 (build 11.0.8+10-LTS)
Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.8+10-LTS, mixed mode)
PS C:\Windows\system32> cd c:\Development
PS C:\Development> cd .\Neo4j
PS C:\Development\Neo4j> bin\neo4j install-service
WARNING: ERROR! Neo4j cannot be started using java version 1.8.0_40
WARNING: * Please use Oracle(R) Java(TM) 11, OpenJDK(TM) 11 to run Neo4j
Server.
* Please see https://neo4j.com/docs/ for Neo4j installation instructions.
Invoke-Neo4j : This instance of Java is not supported
At C:\Development\Neo4j\bin\neo4j.ps1:29 char:7
+ Exit (Invoke-Neo4j -Verbose:$Arguments.Verbose -Command $Arguments.Ar ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorExcep
tion
+ FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorExceptio
n,Invoke-Neo4j
I can't get where the "java version 1.8.0_40" from. Please, help, somebody. Thanks!
For v4.2.6 - in case, encountered win10 powershell security issues, update file neo4j-enterprise-4.2.6\bin\neo4j.ps1 - adjust try block with following - this should work