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

后端 未结 3 879
野趣味
野趣味 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-19 00:10

    I got the same problem on Eclipse (MacOSX Yosemite) this morning but yesterday everything worked... To solve the problem I just deselected the checkbox for another JDK in Project > Properties > Java Build Path restarted Eclipse, reselected the good one (JDK 1.8.0_60), restarted Eclipse again and voilà ! Just a weird bug with checkboxes...

    Hope it ll help you.

提交回复
热议问题