Javafx VM Argumente
--module-path="Add\path\to\JavaFX\lib" --add-modules=javafx.controls,javafx.fxml
DEATHVADER
--module-path="Add\path\to\JavaFX\lib" --add-modules=javafx.controls,javafx.fxml
package javafx11;
import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.control.Label;
import javafx.scene.layout.StackPane;
import javafx.stage.Stage;
public class HelloFX extends Application {
@Override
public void start(Stage stage) {
String version = System.getProperty("java.version");
Label l = new Label ("Hello, JavaFX 11, running on "+version);
Scene scene = new Scene (new StackPane(l), 300, 200);
stage.setScene(scene);
stage.show();
}
public static void main(String[] args) {
launch();
}
}