JavaFX FXML API version warning JavaFX FXML API version warning java java

JavaFX FXML API version warning


If you use the form:

xmlns="http://javafx.com/javafx" xmlns:fx="http://javafx.com/fxml"

The versioning is ignored. You'd only need it if you had some compatibility issue with another version.


I have that problem also. I managed it just to change lines in *.fxml files:

javafx/8.0.171 -> javafx/8.0.141

Previously it was like this, it is a line in the begining of fxml file:

<AnchorPane prefHeight="300.0" prefWidth="600.0" xmlns="http://javafx.com/javafx/8.0.171" xmlns:fx="http://javafx.com/fxml/1" fx:controller="com.application.word.view.LoginController">

Then I changed it for:

<AnchorPane prefHeight="300.0" prefWidth="600.0" xmlns="http://javafx.com/javafx/8.0.141" xmlns:fx="http://javafx.com/fxml/1" fx:controller="com.application.word.view.LoginController">

And it works without any problem. But be carefull that it can be different if you use different jdk generations.


I think your JDK version is 1.8.0_60 and JRE version is 1.8.0_65.

So you should use the same version for both of them.

You can check your current JDK and JRE versions on your command prompt respectively,

java -versionjavac -version

or you can go through the System properties using following java code,

System.out.println(System.getProperties());