hello friends! I'm trying to use reveal on my project but i'm getting this:
user=> (require '[vlaaad.reveal :as r])
Execution error (ClassNotFoundException) at java.net.URLClassLoader/findClass (URLClassLoader.java:382).
javafx.scene.text.Font
I tried with jdk 15, same:
C:\progr\clojure\cljcrd>clj -Adev
Starting user.clj
Clojure 1.11.1
user=> (System/getProperty "java.version")
"15"
user=> (require '[vlaaad.reveal :as r])
Execution error (ClassNotFoundException) at java.net.URLClassLoader/findClass (URLClassLoader.java:435).
javafx.scene.text.Font
hmmm. i'm on windows is this a problem ?
please try clj -Sforce after switching the jdk
windows should be fine…
yey ! works with Sforce, it downloaded all deps! thank you!!
in short:
• your jdk 8 most probably does not have javafx included (it was part of the jdk)
• for jdk 11+, reveal uses maven to pull javafx dependency (from jdk 11, javafx was removed from jdk and now should be used as a normal dependency)
• clj needs -Sforce once after switching the JDKs because unlike maven artifacts, it does not have a concept of activating dependencies by external factors such as jdk version
my pleasure 🙂
if you need jdk 8, you should find one that bundles javafx…
what does (System/getProperty "java.version") say?
user=> (System/getProperty "java.version")
"1.8.0_242"did you switch between JDK versions recently?
hmmm no i don't think so. should i try running the project with another jdk ?
am i missing something ?