If you’re running Clojure on Mac, you’ll probably need to Java 1.8 and not 9 or 11.

Here’s how you can switch..

/usr/libexec/java_home -V
Matching Java Virtual Machines (3):
    11.0.1, x86_64:	"Java SE 11.0.1"	/Library/Java/JavaVirtualMachines/jdk-11.0.1.jdk/Contents/Home
    9.0.1, x86_64:	"Java SE 9.0.1"	/Library/Java/JavaVirtualMachines/jdk-9.0.1.jdk/Contents/Home
    1.8.0_191, x86_64:	"Java SE 8"	/Library/Java/JavaVirtualMachines/jdk1.8.0_191.jdk/Contents/Home

/Library/Java/JavaVirtualMachines/jdk-11.0.1.jdk/Contents/Home

Switch to 1.8

export JAVA_HOME=`/usr/libexec/java_home -v 1.8`