gradle javafx runtime components are missing and are required to run this application

Solutions on MaxInterview for gradle javafx runtime components are missing and are required to run this application by the best coders in the world

showing results for - "gradle javafx runtime components are missing and are required to run this application"
Luis
29 Feb 2019
1/* 
2For example, you can have a main class that is not extending javafx.application.Application,
3and that main class can then call the main(String[]) method on your real main class
4(that way, the Java launcher doesn't require the javafx libraries to be available as named modules). 
5*/
6
7// Like this:
8// Your JavaFX Class
9public class YourJavaFXApplication extends Application {
10    public static void main(String[] args) {
11        launch(args);
12    }
13
14    @Override
15    public void start(Stage primaryStage) {
16        // Your JavaFx stuff
17    }
18}
19
20// Your Main class which only purpose is to start your JavaFX class
21public class Main {
22    public static void main(String[] args) {
23        YourJavaFXApplication.main(args);
24    }
25}