Problems by installing Stardog

I am trying to install Stardog on my Mac but I get this error, I have followed the steps in the docs and my pc has JAVA 8 and a license-key in the stardoghome
MacBook-Pro-van-Sam:bin samdegeyter$ ./stardog-admin server start
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by$ReflectUtils$2 (file:/Users/samdegeyter/stardog-7.0.0/client/api/guice-4.0.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,
WARNING: Please consider reporting this to the maintainers of$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-08-23 10:01:23,109 [main] com.complexible.common.memory.PlatformDependent:(144): sun.misc.VM is not available
WARN 2019-08-23 10:01:23,587 [main] com.complexible.common.nio.ByteBuffers:getCleanMethodHandle(187): Unable to access the clean method of the Cleaner class directly
java.lang.IllegalAccessException: symbolic reference class is not accessible: class jdk.internal.ref.Cleaner, from com.complexible.common.nio.ByteBuffers (unnamed module @5bf61e67)
at java.lang.invoke.MemberName.makeAccessException( ~[?:?]
at java.lang.invoke.MethodHandles$Lookup.checkSymbolicClass( ~[?:?]
at java.lang.invoke.MethodHandles$Lookup.resolveOrFail( ~[?:?]
at java.lang.invoke.MethodHandles$Lookup.findVirtual( ~[?:?]
at com.complexible.common.nio.ByteBuffers.getCleanMethodHandle( [stardog-utils-common-7.0.0.jar:?]
at com.complexible.common.nio.ByteBuffers.( [stardog-utils-common-7.0.0.jar:?]
at com.stardog.starrocks.mvcc.DirectTransactionStore.getTransaction( [stardog-7.0.0.jar:?]
at com.stardog.starrocks.index.VersionedDatabaseManager.buildMap( [stardog-7.0.0.jar:?]
at com.stardog.starrocks.index.VersionedDatabaseManager.( [stardog-7.0.0.jar:?]
at [stardog-7.0.0.jar:?]
at [stardog-7.0.0.jar:?]
at$$FastClassByGuice$$55110a28.invoke() [guice-4.0.jar:?]
at$FastClassProviderMethod.doProvision( [guice-4.0.jar:?]
at [guice-4.0.jar:?]
at [guice-4.0.jar:?]
at [guice-4.0.jar:?]
at [guice-4.0.jar:?]

... 33 more

Unable to provision, see the following errors:

  1. Error injecting constructor, java.lang.ExceptionInInitializerError

at com.complexible.stardog.StardogKernel.(

at com.complexible.stardog.StardogKernel.class(

while locating com.complexible.stardog.StardogKernel

while locating com.complexible.stardog.Kernel

Do you have java versions other than 8 installed on this machine, and could this shell be using one of those? This error appears consistent with things that we have seen when trying to start stardog with Java 9 or 11

I have Java12 and that is certainly a possibility. I had just updated it, in fact, so I could upgrade Eclipse. However, JAVA_HOME seems to point to Java8

(base) bonnie@gabbagabba:/usr/lib/jvm/default-java$ printenv JAVA_HOME


Do I need to do anything else to make sure it starts with Java8?

This email may contain proprietary, confidential and/or privileged material for the sole use of the intended recipient(s). Any review, use, distribution or disclosure by others is strictly prohibited. If you are not the intended recipient (or authorized to
receive for the recipient), please contact the sender by reply email and delete all copies of this message.

As long as JAVA_HOME is set correctly in the shell that is starting Stardog, you should be good.

As for the move from 5 to 7, you'll want to look in the docs at the Migrating to Stardog 6 section and then Migrating to Stardog 7

What is the output from running java -version?

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.