当 运行 on Windows 10 时出现 Blazegraph 错误
Blazegraph error when running on Windows 10
无法从下载页面运行Blazegraph (Java RDF triple store) on Windows 10 using the simple steps。
我有一台 windows 10 机器,安装了 Java JDK 9(见下面的版本检查)。我 downloaded the latest Blazegraph executable jar and then ran "java -server -Xmx4g -jar blazegraph.jar". It reports a NullPointerException as shown below. If it is helpful the error below references StandaloneNanoSparqlServer.java:142,github 显示为 "System.setProperty("jetty.home", jettyXml.getClass().getResource("/war").toExternalForm());".
Commands/Response 在 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)
估计是jre兼容性问题。我在 jre 9 上遇到了同样的问题,切换回 jre 7 解决了 NPE。
根据我的经验,可能是您没有最新的 Javan 运行 或者 运行 代码时不在正确的目录中。此外,建议在用户帐户中拥有所有必要的权限。
无法从下载页面运行Blazegraph (Java RDF triple store) on Windows 10 using the simple steps。
我有一台 windows 10 机器,安装了 Java JDK 9(见下面的版本检查)。我 downloaded the latest Blazegraph executable jar and then ran "java -server -Xmx4g -jar blazegraph.jar". It reports a NullPointerException as shown below. If it is helpful the error below references StandaloneNanoSparqlServer.java:142,github 显示为 "System.setProperty("jetty.home", jettyXml.getClass().getResource("/war").toExternalForm());".
Commands/Response 在 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)
估计是jre兼容性问题。我在 jre 9 上遇到了同样的问题,切换回 jre 7 解决了 NPE。
根据我的经验,可能是您没有最新的 Javan 运行 或者 运行 代码时不在正确的目录中。此外,建议在用户帐户中拥有所有必要的权限。