reveal

Docs: https://vlaaad.github.io/reveal/ Source: https://github.com/vlaaad/reveal
walterl 2021-02-23T22:49:03.005700Z

Odd. I'm getting this trying to start Reveal:

❯ clj -Sdeps '{:deps {vlaaad/reveal {:mvn/version "1.3.196"}}}' -m vlaaad.reveal repl

Syntax error (ClassNotFoundException) compiling at (cljfx/coerce.clj:1:1).
javafx.event.EventHandler
any ideas?

seancorfield 2021-02-23T23:05:49.006100Z

@clojurians-slack100 What does java -version say?

seancorfield 2021-02-23T23:06:12.006500Z

(this sounds like a JDK/JavaFX mismatch)

seancorfield 2021-02-23T23:07:25.007Z

I get that error trying to run Reveal on JDK8 (without JavaFX):

(! 739)-> JAVA_HOME=$OPENJDK8_HOME clj -Sdeps '{:deps {vlaaad/reveal {:mvn/version "1.3.196"}}}' -m vlaaad.reveal repl
WARNING: When invoking clojure.main, use -M
Syntax error (ClassNotFoundException) compiling at (cljfx/coerce.clj:1:1).
javafx.event.EventHandler

seancorfield 2021-02-23T23:08:31.007600Z

But it works if I use the Azul Zulu JDK8 with JavaFX bundle:

(! 740)-> JAVA_HOME=$ZULUJDK8_HOME clj -Sdeps '{:deps {vlaaad/reveal {:mvn/version "1.3.196"}}}' -m vlaaad.reveal repl
WARNING: When invoking clojure.main, use -M
Clojure 1.10.2
user=> ^D

Tue Feb 23 15:07:49
(sean)-(jobs:0)-(~/clojure)
(! 741)-> echo $ZULUJDK8_HOME
/Developer/zulu8.48.0.53-ca-fx-jdk8.0.265-macosx_x64

seancorfield 2021-02-23T23:08:46.008Z

(and it should work on any JDK 11 onward)