Stardog-admin can't find correct java version on M1 Mac

I'm following the instructions to install stardog on macOS:

I followed the steps for M1. i.e. install rosetta and an x86 JDK.

When I try launching stardog server, I get this error.

stardog-admin server start
Unrecognized VM option 'UseParallelOldGC'
Did you mean '(+/-)UseParallelGC'? Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

I checked which version of java my terminal is seeing:

java -version
java version "17.0.1" 2021-10-19 LTS

Whereas the stardog install instructions installs adoptopenjdk11

How do I point stardog to the adoptopenjdk11 version of java?



I believe you would need to set the JAVA_HOME environment variable to point at the Java 11 jdk.

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