Fork me on GitHub
#quil
<
2019-07-02
>
Bravi14:07:22

hi everyone. having issues with quil. I basically do

lein new quil my-app
cd my-app
lein run
and I get an error Exception in thread "main" java.lang.ExceptionInInitializerError, compiling:(quil/core.cljc:1:1)

Bravi14:07:58

could this be related to my java version?

Alex Miller (Clojure team)14:07:31

unlikely, but possibly. what's java -version?

Alex Miller (Clojure team)14:07:44

things like ~/.lein/profiles.clj can sometimes affect things too

Bravi14:07:20

java 12 2019-03-19
Java(TM) SE Runtime Environment (build 12+33)
Java HotSpot(TM) 64-Bit Server VM (build 12+33, mixed mode, sharing)

Bravi14:07:23

that's my java

Bravi14:07:08

and there's just repl-history in my ~/.lein folder

Alex Miller (Clojure team)14:07:57

I have same setup and that quil app works for me

Alex Miller (Clojure team)14:07:50

Is there any other output when it fails?

Bravi14:07:18

Leiningen 2.9.1 on Java 12 Java HotSpot(TM) 64-Bit Server VM

Bravi14:07:41

so the whole output is the following

Bravi14:07:41

I can't see anything helpful in there 😄

Bravi14:07:45

¯\(ツ)

Alex Miller (Clojure team)14:07:49

the end is the helpful bit

Bravi14:07:08

this one? java.lang.StringIndexOutOfBoundsException:

Alex Miller (Clojure team)14:07:09

it's trying to parse the java version name

Alex Miller (Clojure team)14:07:05

they changed the way that was reporting in Java and the Processing code looks like it's not doing the right thing to me

Bravi14:07:53

so it looks like it's java related, right?

Alex Miller (Clojure team)14:07:26

yeah, I would suggest installing java 8 - I suspect that will work

Alex Miller (Clojure team)14:07:04

probably worth feeding this info back to wherever quil has getting started instructions

Bravi14:07:49

cool thanks, I'll try that 🙂