InvocationTargetException when running a javafx program

前端 未结 6 1925
野的像风
野的像风 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:23

    I also encounter that a lot... There seems to be a bug in Scenebuilder/netbeans 8, where upon saving in Scenebuilder, it creates another xmlns:fx="..." so that may be an issue...

    Also, looking at fxml's i have using java8, I have these: xmlns="http://javafx.com/javafx/8" xmlns:fx="http://javafx.com/fxml/1"

    where I noticed your's is: xmlns:fx="http://javafx.com/fxml"

提交回复
热议问题