Welcome to the CSC Q&A, on our server named in honor of Ada Lovelace. Write great code! Get help and give help!
It is our choices... that show what we truly are, far more than our abilities.

Categories

+25 votes

When running our code, the error

Oct 20, 2022 3:38:18 PM javafx.fxml.FXMLLoader$ValueElement processValue
WARNING: Loading FXML document with JavaFX API of version 19 by JavaFX runtime of version 18

This doesn't seem to effect the program at all, but I was wondering what it was and if there are any ways to get rid of it.

asked in CSC305 Fall 2022 by (2.4k points)
edited by
+4

I have this same issue and it is because I downloaded a different version of SceneBuilder than everyone else in my group.

3 Answers

+11 votes

I have a hunch that if you downloaded the latest SceneBuilder (v19) which came out on Oct 7, or if you upgraded SceneBuilder since then, then it is probably starting to save the FXML files with version 19 in them.

You can edit the version number inside the root element of the FXML document -- I suspect you can set it back to 18 without a problem.

On the other hand, perhaps we should be upgrading our projects to use JavaFX 19 instead of 18... shouldn't be too hard since we're using maven, so I bet you could just update the POM.XML file to pull the newer version.

I doubt there are that many big changes between v18 and v19 in any case...

answered by (508 points)
+9 votes

Maybe someone on your team committed with a different version of eclipse or one of the plugins?

answered by (3.3k points)
+4 votes

You can manually change the fxml file to load javafx18 instead of 19. it should be in the first long line of the fxml file

answered by (2.1k points)
...