I am getting the error with following two imports in Eclipse:
import javafx.scene.control.Alert;
import javafx.scene.control.Alert.AlertType;
T
I had the same problem, until I installed the JDK 1.8.0_60. That's right, installing the latest JDK helped!
After you install the latest JDK, change the settings on the Eclipse There are two steps to the process:
Select the appropriate JRE in Eclipse > Preferences > Java > Installed JREs
as shown here:
Project > Properties > Java Build Path
, Add Library as depicted below: