Every time I try to debug a javaFx application I receive this error OpenJDK platform binary has stopped working. Which is the problem? The position of breakpoints are bad or there are many parts of the code, e.g. event handler, that can't be debugged?
EDIT:
public static void main(String[] args) {
launch(args);
}
@Override
public void start(Stage stage) throws Exception{
login();
}
public void login() {
Stage stage = new Stage();
stage.setTitle("Google");
WebView root = new WebView();
WebEngine engine = root.getEngine();
engine.load("https://www.google.com");
engine.setOnStatusChanged(new EventHandler<WebEvent<String>>() {
public void handle(WebEvent<String> event) {
System.out.println("here");
}
});
Scene scene = new Scene(root);
stage.setScene(scene);
stage.show();
}
The stage that appears is totally white and doesn't work. When the exit button of windows is clicked appear the error OpenJDK platform binary has stopped working