cljfx

https://github.com/cljfx/cljfx
2019-07-20T16:18:13.000400Z

When I lein run with exclusions I get this stack trace https://pastebin.com/kwXGyJWV

vlaaad 2019-07-20T16:23:45.000500Z

Hmm are you sure you have JavaFX on classpath?

2019-07-20T16:44:35.001Z

JavaFX is linked to OpenJDK11 as a module when compiled https://pastebin.com/DFWPWncH

2019-07-20T16:45:19.001700Z

and I'm pretty sure lein just uses whatever jdk is on $JAVA_HOME unless you manually override it

vlaaad 2019-07-20T16:50:51.001900Z

So does lein uberjar work then?

vlaaad 2019-07-20T16:53:11.002Z

Does your application have access to JavaFX modules? I'm not sure how to give it via lein, probably by some jvm opts..

2019-07-20T17:00:51.002300Z

Hmm no, I'm getting the same stack trace

2019-07-20T17:02:03.003100Z

The only thing I've been able confirm is that java files using the jfx library compile and run

2019-07-20T17:03:57.003400Z

2019-07-20T17:23:37.004300Z

ok, I found the jvm option and tried doing this. :jvm-opts ["--add-modules" "javafx.base" "javafx.controls" "javafx.fxml" "javafx.graphics" "javafx.media" "javafx.swing" "javafx.web"], but I get the error Error occurred during initialization of boot layer java.lang.module.FindException: Module javafx.base not found

2019-07-20T17:24:05.004900Z

it seems as through it's unable to access the modules, but I'm not sure why