Search code examples
windowsjavafxcmdfxmljavafx-11

Loading FXML document with JavaFX API of version 11.0.1 by JavaFX runtime of version 10.0.2-internal


I am getting this warning :

WARNING: Loading FXML document with JavaFX API of version 11.0.1 by JavaFX runtime of version 10.0.2-internal

When I run this command:

java --module-path C:\Users\me\Downloads\openjfx-11.0.2_windows-x64_bin-sdk\javafx-sdk-11.0.2\lib --add-modules=javafx.controls,javafx.fxml -jar app.jar

The app.jar is made from IntelliJ idea.

java -version : 11.0.4
javac -version : 11.0.4

What should I do now?

Your help is much appreciated!


Solution

  • I have searched and found that it is occurred due to Windows Path, I just change "\" to "\\" in filepath of external library.