leiningen

Eric 2022-03-08T16:09:57.838159Z

I created a basic project using Leiningen + Quil and just running it without any modification gives me a Java error. I'm thinking it's because I have an OpenJDK installed. Does anyone have experience with this? Error:

user=> (use 'my-art.core :reload-all)
Execution error (ClassNotFoundException) at jdk.internal.loader.BuiltinClassLoader/loadClass (BuiltinClassLoader.java:641).
com.apple.eawt.QuitHandler

vemv 2022-03-08T16:13:59.228159Z

Try JDK 8 or 11?

👍🏼 1
Eric 2022-03-08T16:10:31.313369Z

% java -version
java version "17.0.1" 2021-10-19 LTS
Java(TM) SE Runtime Environment (build 17.0.1+12-LTS-39)
Java HotSpot(TM) 64-Bit Server VM (build 17.0.1+12-LTS-39, mixed mode, sharing)

Alex Miller (Clojure team) 2022-03-08T16:23:56.017629Z

I believe this is a known issue with Quil https://github.com/quil/quil/issues/358

Eric 2022-03-08T16:25:04.588639Z

Thanks, Alex!

Eric 2022-03-08T16:25:40.599169Z

I solved it just now by removing the JDK.

Eric 2022-03-08T16:26:05.888749Z

% sudo rm -rf /Library/Java/JavaVirtualMachines/jdk-17.0.1.jdk
% java -version
java version "1.8.0_321"
Java(TM) SE Runtime Environment (build 1.8.0_321-b07)
Java HotSpot(TM) 64-Bit Server VM (build 25.321-b07, mixed mode)