'JavaFX runtime components are missing, and are required to run this application on VSCode
A java newbie here. I wanted to learn about JavaFX on VSCode but when I launch my JavaFX it gave me this error. I tried to add referenced Library and the configurations vmArgs on launch.json on the project, but it giving me the same thing.
Here is my config.
"vmArgs": "--module-path C:/Users/vince/Downloads/javafx-sdk-17.0.1/lib --add-modules javafx.controls,javafx.fxml"
Can anyone help me please ?
Solution 1:[1]
Check out the samples here: https://github.com/openjfx/samples/tree/master/IDE/VSCode
You can probably use this one, which I guess is the one you are looking for.
Solution 2:[2]
I didn't fix the javafx in my vs code, but i switched IDE to Eclipse and JavaFX run smoothly after adding VMargs to the run configuration on Eclipse
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | |
| Solution 2 | mc ser |
