Eclipse gives warning on access restriction for jfxrt.jar classes

后端 未结 5 1211
陌清茗
陌清茗 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:09

    Add an access rule for javafx.

    Right click your project > Properties > Java Build Path > Libraries tab, then:

    • Expand JRE System Library
    • select Access Rules, click Edit... button
    • click Add...
    • choose Resolution: Accessible
    • set Rule Pattern: javafx/**
    • click OK
    • click OK

提交回复
热议问题