Using Eclipse to build javafx using JDK8 for the first time encountered a compilation error:
Access restriction: The type ‘Application’ is not API (restriction on required library ‘E:\JAVA\jdk1.8\jre\lib\ext\jfxrt.jar’)
Solution: Right-click the project name–>Build Path–>Confgure Build Path–>Select jre system library–>remove–>Add library to add the system jre library from the new