reveal

Serafeim Papastefanos 2022-05-04T06:44:39.112509Z

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

Serafeim Papastefanos 2022-05-04T07:01:02.349559Z

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

Serafeim Papastefanos 2022-05-04T07:01:13.930789Z

hmmm. i'm on windows is this a problem ?

vlaaad 2022-05-04T07:14:03.088009Z

please try clj -Sforce after switching the jdk

vlaaad 2022-05-04T07:14:29.402659Z

windows should be fine…

Serafeim Papastefanos 2022-05-04T07:17:45.590029Z

yey ! works with Sforce, it downloaded all deps! thank you!!

vlaaad 2022-05-04T07:28:01.032499Z

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

vlaaad 2022-05-04T07:28:09.462779Z

my pleasure 🙂

🙌 1
vlaaad 2022-05-04T07:28:56.545069Z

if you need jdk 8, you should find one that bundles javafx…

vlaaad 2022-05-04T06:49:37.290469Z

what does (System/getProperty "java.version") say?

Serafeim Papastefanos 2022-05-04T06:50:21.864369Z

user=> (System/getProperty "java.version")
"1.8.0_242"

vlaaad 2022-05-04T06:58:10.568119Z

did you switch between JDK versions recently?

Serafeim Papastefanos 2022-05-04T06:59:51.209699Z

hmmm no i don't think so. should i try running the project with another jdk ?

Serafeim Papastefanos 2022-05-04T06:44:55.736429Z

am i missing something ?