0
I downloaded the Javafx Sdk for Java Platform 11 and I’m trying to open my FXML, but when I try to run my program it gives the following error:
static String uId;
public static void main(String[] args){
// Código ...
if (user.username == null){uId = null}
Application.launch(args);
}
@Override
public void start(Stage arg0) throws Exception {
URL fxml = getClass().getResource("./LG.fxml");
Parent fxmlParent = (Parent) FXMLLoader.load(fxml);
arg0.setScene(new Scene(fxmlParent));
arg0.setTitle("Tela de Login");
if (uId == null) {
System.out.println("Visualizando janela de Login");
arg0.show();
}else {
}
}
"Error: Javafx Runtime components not found. They are required to run this application"
How I fix it and what’s causing it?
Note: I am using Eclipse IDE on Ubuntu 18.04 if help :D