Running TypeDB on an M1 MacBook

M1 MacBook users may see the following error when attempting to run TypeDB:

Exception in thread "main" java.lang.UnsatisfiedLinkError: Can't load library: /var/folders/5v/95_mbj013y93vsmc8xps0stm0000gp/T/librocksdbjni8182124459810412816.jnilib
    at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2393)
    at java.base/java.lang.Runtime.load0(Runtime.java:755)
    at java.base/java.lang.System.load(System.java:1953)
...

This error means that the installed JDK is not compatible with TypeDB on this operating system. Please take the following steps to resolve the issue:

  1. Visit https://adoptopenjdk.net/releases.html
  2. Select OpenJDK version 11, the HotSpot JVM, the MacOS operating system and x64 architecture
  3. Download and install the first available JDK from the list (jdk-11.0.14.1+1 at the time of writing)
  4. Run java --version to verify that the JDK was correctly installed and is available on the system PATH
  5. Run TypeDB, which should now start up successfully