Reputation: 2093
I'm trying to get Spring Boot working with Java FX according to this tutorial. Specifically I cloned and tried to run this project from the tutorial, which is supposed to be set up correctly.
When I try to run the project in Eclipse with Run as / Spring Boot App, I get the following error:
Error: JavaFX runtime components are missing, and are required to run this application
I'm running JDK 11 and I tried adding the javafx jars to the build path according to the tutorial. Am I missing something?
Upvotes: 0
Views: 187
Reputation: 2093
In addition to adding the JavaFX libraries to build path, you also have to edit the run configuration and add --add-modules javafx.controls,javafx.fxml
to the VM arguments.
Saw that when reading the official guide again based on @jewelsea's comment.
Upvotes: 1