Javafx dependecies issue

Hi guys i kept getting the following error when trying to run a javafx project on intellij-idea:

Caused by: java.lang.RuntimeException: java.lang.UnsatisfiedLinkError: /nix/store/wgakmixbrnjz2s69vc08803daavszm0g-javafx-sdk/lib/lib/libglassgtk3.so: libgthread-2.0.so.0: cannot open shared object file: No such file or directory

It’s related to the fact that javafx is unable to find libgthread-2.0 even if installed internally to glib. I’m unable to understand why it can’t find it… thanks to everyone!

Does the file the error mentions exist?