Exception in Application start method java.lang.reflect.InvocationTargetException

前端 未结 10 1762
刺人心
刺人心 2021-01-02 18:47

I am just starting out with JavaFX, and I am trying to build a simple application with a label, text field and button which, when clicked, sets the label\'s value to that of

相关标签:
10条回答
  • 2021-01-02 19:38

    i've had the same problem with the CORRECT PATH i was working in scene builder 8.5 i upgraded it to 11.0 and now its working (i've redesigned all the GUI).

    0 讨论(0)
  • 2021-01-02 19:41

    I also met this case, you please follow me hope to succeed: Tool> Options> Java> JavaFX> Scenne Buider Home> Change Link. Your route to Scenne Buider is unsuitable, it took me hours to find, it is time consuming but it will be a matter of always important when starting JavaFX.

    0 讨论(0)
  • 2021-01-02 19:46

    This problem can also occure even when the path is completely right.

    1. When you create the fxml file in an Updated IDE.

    2. Then use an older JavaFX Scene Builder to design it.

    Solution :

    1. Create the fxml file in JavaFX Scane Builder

    2. Design the fxml file in JavaFX Scane Builder then copy this to the IDE or Project.

    0 讨论(0)
  • 2021-01-02 19:51

    Location is not set.
    This exception states that your FXML file is unreachable by the code. If you have your fxml file inside any package then specify it with the package name.

    0 讨论(0)
提交回复
热议问题