Memrec tool doesn't work with JDK 11

I'm trying to run the neo4j-admin memrec tool to get the recommended memory config for my database, but it doesn't work, and shows "Unable to find any JVMs matching version 1.8". Here is the output -

Screenshot 2020-01-08 12.09.50

Is there a way of running the tool with JDK 11? The memory configuration guide doesn't mention anywhere that it works only with JDK 8.

I found another related post with the same error message here.