I am using IntelliJ (2020.1). I have installed javaFX v-11.0.2 and it is working fine. I am also using Scene Builder v-8. As soon as I include any jfx_object in scenebuilder(like jfx_RadioButton etc.) and then run the main.java in intellij it shows an error java.lang.reflect.InvocationTargetException and bunch of other errors too. I have included JFoenix as external library too. This error only shows up when any jfx object is added in scene builder.
Please help me to fix, I have given my 2 days on this and i am really frustrated.
It is fixed now. Thanks for the help Slaw. I just have to change the module-info.java file. '''
module IdeaProjects {
requires javafx.fxml;
requires javafx.controls;
requires com.jfoenix;
opens sample;
}