For Complie adn build please download javafx into your computer; Then for vs code user, add the this configuration: ' "vmArgs": "--module-path "path to the javafx sdk lib" --add-modules javafx.controls,javafx.fxml",' into your launch.json. Next, you can now click the run icon for runing.
For Intellij: please make sure you add the javafx library in the project modules, and also go to the configraution and add the VM opsition '"vmArgs": "--module-path "path to the javafx sdk lib" --add-modules javafx.controls,javafx.fxml"' Next, you can now click the run icon for runing.