cljfx

https://github.com/cljfx/cljfx
Grigory Shepelev 2020-09-11T12:44:12.084100Z

Hello. I asked a question yesterday. My main is:

(defn -main
  [& args]
  (fx/mount-renderer gui/*state gui/renderer))

Grigory Shepelev 2020-09-11T12:44:24.084500Z

Guess that's the problem...

Grigory Shepelev 2020-09-11T12:46:32.086Z

Oh. Thanks. I'm a total newbie in devops-related stuff on java/clojure interop. Sorry for the questions that might be trivial

vlaaad 2020-09-11T12:46:48.086300Z

np, it’s a common issue 🙂

vlaaad 2020-09-11T12:48:09.087500Z

unfortunately, this is a javafx issue — not much can be done about it

vlaaad 2020-09-11T12:50:22.088700Z

I’m not usually active in the #beginners channel, I think for cljfx-related questions this channel might be a better place

Grigory Shepelev 2020-09-11T13:37:11.089Z

@vlaaad do I still have to use :uberjar {:aot :all}?

vlaaad 2020-09-11T13:38:01.089800Z

you don’t have to, but for faster startup time it’s a good idea to AOT-compile your clojure

Grigory Shepelev 2020-09-11T13:39:38.090600Z

I added :aot :all but its just hangs even with :jvm-opts ["-Dcljfx.skip-javafx-initialization=true"

Grigory Shepelev 2020-09-11T13:41:30.090900Z

😞 @vlaaad

vlaaad 2020-09-11T14:12:33.091500Z

can you show your project.clj file?

vlaaad 2020-09-11T14:13:05.092100Z

have you added (:gen-class) to your ns definition with -main ?

vlaaad 2020-09-11T14:14:21.092300Z

@altjsus ^

Grigory Shepelev 2020-09-11T14:43:53.092900Z

It was the stuff with platform/exit or something