quil

Bravi 2019-07-02T14:18:22.013100Z

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)

Bravi 2019-07-02T14:18:58.013300Z

could this be related to my java version?

alexmiller 2019-07-02T14:20:31.013600Z

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

alexmiller 2019-07-02T14:21:44.014300Z

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

Bravi 2019-07-02T14:23:20.014500Z

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)

Bravi 2019-07-02T14:23:23.014700Z

that's my java

alexmiller 2019-07-02T14:24:08.015300Z

Should be fine

Bravi 2019-07-02T14:24:08.015400Z

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

alexmiller 2019-07-02T14:24:21.015700Z

That’s good

alexmiller 2019-07-02T14:24:57.016400Z

I have same setup and that quil app works for me

alexmiller 2019-07-02T14:25:50.016800Z

Is there any other output when it fails?

alexmiller 2019-07-02T14:27:58.017100Z

what's your lein -v?

Bravi 2019-07-02T14:28:18.017300Z

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

Bravi 2019-07-02T14:28:41.017900Z

so the whole output is the following

Bravi 2019-07-02T14:29:25.018Z

Bravi 2019-07-02T14:30:41.018500Z

I can't see anything helpful in there 😄

Bravi 2019-07-02T14:30:45.018700Z

¯\(ツ)

alexmiller 2019-07-02T14:30:49.018800Z

the end is the helpful bit

Bravi 2019-07-02T14:31:08.019200Z

this one? java.lang.StringIndexOutOfBoundsException:

alexmiller 2019-07-02T14:31:09.019300Z

it's trying to parse the java version name

alexmiller 2019-07-02T14:33:05.019900Z

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

Bravi 2019-07-02T14:33:53.020500Z

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

alexmiller 2019-07-02T14:34:26.020800Z

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

alexmiller 2019-07-02T14:35:19.021300Z

looks like using 8u202 from https://www.oracle.com/technetwork/java/javase/downloads/java-archive-javase8-2177648.html is best bet

alexmiller 2019-07-02T14:38:04.022100Z

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

Bravi 2019-07-02T14:45:49.022400Z

cool thanks, I'll try that 🙂