Stardog on Debian Buster with openjdk-11

I am trying to run Stardog on Buster, which does not have openjdk-8-jre, only 11. Stardog fails to run with that, failing with:

exception in thread "main" java.lang.ExceptionInInitializerError
Caused by: java.lang.NullPointerException
at org.apache.commons.lang3.SystemUtils.isJavaVersionAtLeast(SystemUtils.java:1413)
at com.complexible.common.memory.PlatformDependent0.(PlatformDependent0.java:796)

I found this post:

which looks to be the same issue. No solution is offered in that post, other than to use JDK8. Unfortunately that is not possible with Buster.

So how can I run Stardog on Buster?

You can still install a Java8 jre although it isn’t as easy as apt install. The next most convenient way would probably to use sdkman https://sdkman.io/