使用下载页面中的简单步骤无法在 Windows 10 上运行Blazegraph(Java RDF 三重存储) 。
我有一台安装了 Java JDK 9 的 Windows 10 机器(请参阅下面的版本检查)。我下载了最新的 Blazegraph 可执行 jar,然后运行“java -server -Xmx4g -jar blazegraph.jar”。它报告 NullPointerException,如下所示。如果有帮助,下面的错误引用StandaloneNanoSparqlServer.java:142,github显示为"System.setProperty("jetty.home", jettyXml.getClass().getResource("/war").toExternalForm());".
Windows 管理员 CMD 提示符下的命令/响应:
C:\Users\aidesigner\Downloads\Blazegraph>dir
11/26/2017 09:48 PM 56,702,395 blazegraph.jar
11/26/2017 09:06 PM 0 rules.log
C:\Users\aidesigner\Downloads\Blazegraph>java -version
java version "9"
Java(TM) SE Runtime Environment (build 9+181)
Java HotSpot(TM) 64-Bit Server VM (build 9+181, mixed mode)
C:\Users\aidesigner\Downloads\Blazegraph>java -server -Xmx4g -jar blazegraph.jar
INFO: com.bigdata.util.config.LogUtil: Configure: jar:file:/C:/Users/aidesigner/Downloads/Blazegraph/blazegraph.jar!/log4j.properties
WARN : SystemUtil.java:71: No CPUParser for this platform - looking for class: [org.apache.system.Windows10]
BlazeGraph(TM) Graph Engine
Flexible
Reliable
Affordable
Web-Scale Computing for the Enterprise
Copyright SYSTAP, LLC DBA Blazegraph 2006-2016. All rights reserved.
developer-pc.home
Sun Nov 26 21:08:03 CST 2017
Windows 10/10.0 amd64
amd64 Family n, Model n, Stepping n, Undeterminable #CPU=1
Oracle Corporation 9
freeMemory=521142272
buildVersion=2.1.1
gitCommit=90d9e8232969a8afdc830e856643e5416bb50d0a
// <Displays about 20 license links>
ERROR: Banner.java:160: Uncaught exception in thread
java.lang.NullPointerException
at com.bigdata.rdf.sail.webapp.StandaloneNanoSparqlServer.main(StandaloneNanoSparqlServer.java:142)