我尝试从最新的下载文件夹(neo4j-community-2.1.6)和Homebrew安装(社区2.0.0)运行Neo4j。在每种情况下,我都会收到以下错误:
Using additional JVM arguments: -server -XX:+DisableExplicitGC -Dorg.neo4j.server.properties=conf/neo4j-server.properties -Djava.util.logging.config.file=conf/logging.properties -Dlog4j.configuration=file:conf/log4j.properties -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled -Dneo4j.ext.udc.source=homebrew -Djava.awt.headless=true
Starting Neo4j Server...WARNING: not changing user
process [2411]... waiting for server to be ready.. Failed to start within 120 seconds.
Neo4j Server may have failed to start, please check the logs.
所以,我转到日志(/data/log/console.log
)并获得以下内容:
Exception in thread "main" java.lang.NoSuchMethodError: org.slf4j.spi.LocationAwareLogger.log(Lorg/slf4j/Marker;Ljava/lang/String;ILjava/lang/String;[Ljava/lang/Object;Ljava/lang/Throwable;)V
at org.apache.commons.logging.impl.SLF4JLocationAwareLog.debug(SLF4JLocationAwareLog.java:133)
at org.apache.commons.configuration.ConfigurationUtils.locate(ConfigurationUtils.java:447)
at org.apache.commons.configuration.AbstractFileConfiguration.load(AbstractFileConfiguration.java:213)
at org.apache.commons.configuration.AbstractFileConfiguration.load(AbstractFileConfiguration.java:197)
at org.apache.commons.configuration.AbstractFileConfiguration.<init>(AbstractFileConfiguration.java:162)
at org.apache.commons.configuration.PropertiesConfiguration.<init>(PropertiesConfiguration.java:252)
at org.neo4j.server.configuration.PropertyFileConfigurator.loadPropertiesConfig(PropertyFileConfigurator.java:147)
at org.neo4j.server.configuration.PropertyFileConfigurator.<init>(PropertyFileConfigurator.java:67)
at org.neo4j.server.Bootstrapper.createConfigurator(Bootstrapper.java:220)
at org.neo4j.server.Bootstrapper.start(Bootstrapper.java:98)
at org.neo4j.server.Bootstrapper.main(Bootstrapper.java:62)
我的$ JAVA_HOME是:
/Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk/Contents/Home
/ usr / libexec / java_home -V的输出是:
Matching Java Virtual Machines (4):
1.7.0_51, x86_64: "Java SE 7" /Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk/Contents/Home
1.7.0_15, x86_64: "Java SE 7" /Library/Java/JavaVirtualMachines/jdk1.7.0_15.jdk/Contents/Home
1.6.0_65-b14-466.1, x86_64: "Java SE 6" /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
1.6.0_65-b14-466.1, i386: "Java SE 6" /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
/Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk/Contents/Home
在/ Library / Java / Extensions中我有:
logback-classic.jar@ -> /usr/local/xuggler/share/java/jars/logback-classic.jar
logback-core.jar@ -> /usr/local/xuggler/share/java/jars/logback-core.jar
slf4j-api.jar@ -> /usr/local/xuggler/share/java/jars/slf4j-api.jar
xuggle-xuggler.jar@ -> /usr/local/xuggler/share/java/jars/xuggle-xuggler.jar
我尝试将/usr/local/xuggler/share/java/jars/slf4j-api.jar
更新到最新版本,但是在console.log中出现了一个新错误,说明预期版本为1.5.6,但未找到。所以,我把原件放回去了。
我正在运行OS X 10.10.1。 uname -a
:
Darwin xxxxxxx.local 14.0.0 Darwin Kernel Version 14.0.0: Fri Sep 19 00:26:44 PDT 2014; root:xnu-2782.1.97~2/RELEASE_X86_64 x86_64
如果有人能就如何让这种方式给我任何建议,我将非常感激。
谢谢! 詹姆斯