2016-09-08 61 views
1

Neo4j 3.0.4企业版试图安装服务或启动其显示错误。在不同的机器上也尝试过了,如何解决这个问题?Neo4j 3.0.4企业版试用版未能在Windows中启动

E:\Neo4j\neo4j-enterprise-3.0.4\bin>neo4j.bat install-service -verbose 
VERBOSE: Neo4j Root is 'E:\Neo4j\neo4j-enterprise-3.0.4' 
VERBOSE: Neo4j Server Type is 'Enterprise' 
VERBOSE: Neo4j Version is '3.0.4' 
VERBOSE: Neo4j Database Mode is '' 
VERBOSE: Install command specified 
VERBOSE: Neo4j Windows Service Name is neo4j 
VERBOSE: Java detected at 'C:\Program Files\Java\jdk1.8.0_92\jre\bin\java.exe' 
VERBOSE: Executing C:\Program Files\Java\jdk1.8.0_92\jre\bin\java.exe -version 
VERBOSE: Java version response: java version "1.8.0_92" 
Java(TM) SE Runtime Environment (build 1.8.0_92-b14) 
Java HotSpot(TM) 64-Bit Server VM (build 25.92-b14, mixed mode) 
VERBOSE: Java Version detected as 1.8.0_92 
VERBOSE: Neo4j Windows Service Name is neo4j 
VERBOSE: Reading JVM settings from neo4j-wrapper.conf 
Invoke-Neo4j : Method invocation failed because [System.Object[]] doesn't contain a method named 'contains'. 
At line:1 char:221 
+ try { Unblock-File -Path 'E:\Neo4j\neo4j-enterprise-3.0.4\bin\Neo4j-Management\*.*' -ErrorAction 'SilentlyContinue' } catch {};Import-Module 'E:\Neo4j\neo4j-enterprise-3.0.4\bin\Neo4j-Management.psd1'; Exit (Invoke-Neo4j <<<< install-service -verbose) 
    + CategoryInfo   : NotSpecified: (:) [Write-Error], WriteErrorException 
    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Invoke-Neo4j 

回答

3

在bin /的Neo4j-管理文件夹,合并 - Neo4jJavaSettings.ps1文件都有一行68#语法错误:

If (-not $Source.contains($thisSetting)) { 

应该

If (-not $Source -contains $thisSetting) { 

为了记录,这在社区版中发生,所以这两个版本似乎都有问题。

+0

它的作品谢谢,希望neo4j将解决这个问题 – Jeevanantham

+0

嗨,你可以请检查我的相关帖子?谢谢! http://stackoverflow.com/questions/40639088/neo4j-3-0-7-enterprise-trial-version-failed-to-start-in-windows – guzu92

+0

我有3.0.3并没有Merge-Neo4jJavaSettings.ps1文件,但我得到这个确切的错误。 –