Java fxml app not working - Cannot find symbol error

橙三吉。 提交于 2019-12-02 10:45:18

Your error message should be similar to the following:

[javac] cannot find symbol

[javac] import javafx.scene.control.Alert;

[javac] ..........................................^

[javac] symbol: class Alert

As it has been said in the comments: The Alert class has been introduced in Java 8u40. For further changes that have been introduced on the 8u40 release see this Oracle blog post.

So: Update your Java distribution, either by downloading it on the Oracle page, or by updating it via sudo apt-get update && sudo apt-get install openjdk-8-jdk openjfx -y

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!