首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法让Stardog在Mac上运行

无法让Stardog在Mac上运行
EN

Stack Overflow用户
提问于 2019-01-25 13:59:12
回答 1查看 230关注 0票数 4

我只是下载Stardog,并试图在我的机器上运行它(MacOSX10.14.2)。

我使用ZSH shell,并在.zshrc文件中添加了以下两行:

代码语言:javascript
复制
export STARDOG_HOME="/Applications/stardog-6.1.0"
export PATH="$PATH:$STARDOG_HOME/bin"

下面是我的整个$PATH变量:

代码语言:javascript
复制
➜  echo $PATH
/Users/my_user/.nvm/versions/node/v11.6.0/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/stardog-6.1.0/bin

以下是我的java版本:

代码语言:javascript
复制
➜  java --version
openjdk 11.0.1 2018-10-16
OpenJDK Runtime Environment 18.9 (build 11.0.1+13)
OpenJDK 64-Bit Server VM 18.9 (build 11.0.1+13, mixed mode)

我在/Applications/stardog-6.1.0中复制了许可证,然后尝试运行stardog-admin server start,但这是输出:

代码语言:javascript
复制
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.google.inject.internal.cglib.core.$ReflectUtils$2 (file:/Applications/stardog-6.1.0/client/api/guice-4.0.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
WARNING: Please consider reporting this to the maintainers of com.google.inject.internal.cglib.core.$ReflectUtils$2
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
WARN  2019-01-25 13:50:03,228 [main] com.complexible.common.memory.PlatformDependent:<init>(144): sun.misc.VM is not available
There was an error initializing Stardog; one or more dependencies could not be satisfied. Please verify your classpath is correct.
The initialization errors were:
 *  Error injecting constructor, java.lang.ExceptionInInitializerError
        com.complexible.stardog.StardogKernel.<init>()
        com.complexible.stardog.StardogKernel
    Caused by:
java.lang.ExceptionInInitializerError
    at com.complexible.memory.memoryblock.MemoryBlockPool.allocateAll(MemoryBlockPool.java:181)
    at com.complexible.memory.memoryblock.MemoryBlockPool.<init>(MemoryBlockPool.java:50)
    at com.complexible.memory.memoryblock.MemoryContext.createMemoryBlockPool(MemoryContext.java:180)
    at com.complexible.memory.memoryblock.MemoryContext.<init>(MemoryContext.java:65)
    at com.complexible.stardog.StardogKernel.initMemoryContext(StardogKernel.java:703)
    at com.complexible.stardog.StardogKernel.<init>(StardogKernel.java:491)
    at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
    at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
    at com.google.inject.internal.DefaultConstructionProxyFactory$2.newInstance(DefaultConstructionProxyFactory.java:86)
    at com.google.inject.internal.ConstructorInjector.provision(ConstructorInjector.java:105)
    at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:85)
    at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:267)
    at com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46)
    at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1103)
    at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
    at com.google.inject.internal.SingletonScope$1.get(SingletonScope.java:145)
    at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:41)
    at com.google.inject.internal.FactoryProxy.get(FactoryProxy.java:56)
    at com.google.inject.internal.InjectorImpl$2$1.call(InjectorImpl.java:1016)
    at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1092)
    at com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.java:1012)
    at com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1051)
    at com.complexible.stardog.Stardog.initKernel(Stardog.java:213)
    at com.complexible.stardog.Stardog.<init>(Stardog.java:206)
    at com.complexible.stardog.Stardog.<init>(Stardog.java:60)
    at com.complexible.stardog.Stardog$StardogBuilder.create(Stardog.java:597)
    at com.complexible.stardog.cli.impl.ServerStart.call(ServerStart.java:165)
    at com.complexible.stardog.cli.impl.ServerStart.call(ServerStart.java:41)
    at com.complexible.stardog.cli.CLIBase.execute(CLIBase.java:55)
    at com.complexible.stardog.cli.admin.CLI.main(CLI.java:187)
Caused by: java.lang.NullPointerException
    at org.apache.commons.lang3.SystemUtils.isJavaVersionAtLeast(SystemUtils.java:1642)
    at com.complexible.memory.util.MMBits.<clinit>(MMBits.java:37)
    ... 32 more
Unable to provision, see the following errors:

1) Error injecting constructor, java.lang.ExceptionInInitializerError
  at com.complexible.stardog.StardogKernel.<init>(StardogKernel.java:277)
  at com.complexible.stardog.StardogKernel.class(StardogKernel.java:277)
  while locating com.complexible.stardog.StardogKernel
  while locating com.complexible.stardog.Kernel

我遗漏了什么?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2019-01-25 14:46:54

文档 (Stardog 6.1.0 (2019年1月16日))指出:

要求 它并没有比这更容易: Stardog运行在Java 8上。

安装Java 8。

我希望,随着时间的推移,Stardog的供应商将发布一个在Java 11上工作的版本,但我在他们的站点上看不到任何公告。(有一只星犬7.0.0 Beta .但是发布说明没有提到Java 11。)

票数 3
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/54366784

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档