Eclipse gives warning on access restriction for jfxrt.jar classes

后端 未结 5 1327
陌清茗
陌清茗 2021-02-04 02:57

I\'m using eclipse kepler with java SE 1.8 jdk system library but when I use any javafx classes or methods eclipse gives a warning like Access restriction: The type \'Tabl

5条回答
  •  感动是毒
    2021-02-04 03:27

    You can choose ignore in the following settings:

    Windows -> Preferences -> Java -> Compiler -> Errors/Warnings
    (Project) Properties -> Java Compiler -> Errors/Warnings
    

    Use filter to find "Forbidden reference"

    Forbidden reference (access rules) : Change it to "ignore"

    enter image description here

提交回复
热议问题