关于在调用JAVAFX相关包时遇到Access restriction: The type 'Application' is not API (restriction on required library)的解决方法

点击工具栏的Project->Properties->Java Build Path->Libraries->

双击第一项

点击Add添加允许javafx

然后就不会报错了

原文地址:https://www.cnblogs.com/fu3638/p/8991492.html