The import javafx.scene.control.Alert cannot be resolved

后端 未结 3 887
野趣味
野趣味 2021-02-18 23:19

I am getting the error with following two imports in Eclipse:

import javafx.scene.control.Alert;
import javafx.scene.control.Alert.AlertType;

T

3条回答
  •  悲&欢浪女
    2021-02-18 23:53

    You need to change the java version. Java 1.8.0_45 do not include javafx.scene.control.Alert You can download version 1.8.0_221 here

提交回复
热议问题