每次尝试调试javafx应用程序时,我都会收到这个错误 OpenJDK platform binary has stopped working
. 问题出在哪?断点的位置不好,或者代码中有许多部分(例如事件处理程序)无法调试?
编辑:
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();
}
出现的舞台完全是白色的,不起作用。单击windows的“退出”按钮时出现错误 OpenJDK platform binary has stopped working
暂无答案!
目前还没有任何答案,快来回答吧!