I am getting the error with following two imports in Eclipse:
import javafx.scene.control.Alert; import javafx.scene.control.Alert.AlertType;
T
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