I have the same/similar problem as this call Problems installing Stardog, although I think the install is OK. Just starting the server doesn't work.
I get this when running stardog-admin server start
Unable to provision, see the following errors:
- Error injecting constructor, java.lang.ExceptionInInitializerError
at com.complexible.stardog.StardogKernel.(StardogKernel.java:291)
at com.complexible.stardog.StardogKernel.class(StardogKernel.java:291)
while locating com.complexible.stardog.StardogKernel
while locating com.complexible.stardog.Kernel
I do have both Java 8 and Java 11 installed on my machine
jenv versions
system
- 1.8 (set by /Users/derek/opt/stardog-7.1.1/bin/.java-version)
1.8.0.242
11.0
11.0.1
openjdk64-1.8.0.242
oracle64-11.0.1
I inserted some echo statements in stardog-admin to check the version being used. I added the following -
echo STARDOG_JAVA_ARGS
echo $STARDOG_JAVA_ARGS
echo java -version
The output was -
openjdk version "1.8.0_242"
OpenJDK Runtime Environment (AdoptOpenJDK)(build 1.8.0_242-b08)
OpenJDK 64-Bit Server VM (AdoptOpenJDK)(build 25.242-b08, mixed mode)
STARDOG_JAVA_ARGS
-Dstardog.home=/Users/derek/data/StardogHome/ -Xmx512m -Djava.library.path=/Users/derek/opt/stardog-7.1.1/bin/../lib
It looks like it's running the right version of java. So, why is it giving this error when starting?