InvocationTargetException when running a javafx program

前端 未结 6 1915
野的像风
野的像风 2020-11-30 10:05

So this worked in the example from javafx when My pc had jdk 1.7.0 so this may be the new version of FX in java8 however;

I get a nice stack-trace

jf         


        
6条回答
  •  执笔经年
    2020-11-30 10:21

    In Run >> Edit Configurations

    Add this line to VM Options:

    --module-path /path/to/JavaFX/lib --add-modules=javafx.controls,javafx.fxml
    

    this worked for me after tones of search

提交回复
热议问题