Eclipse gives warning on access restriction for jfxrt.jar classes

后端 未结 5 1218
陌清茗
陌清茗 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条回答
  •  梦毁少年i
    2021-02-04 03:20

    The easy way is to install e(fx)clipse - a plugin for Eclipse to support JavaFX:

    1. Select Help -> Install New Software
    2. Click Add button to add the following site:
      • Name: efxclipse
      • Location: http://download.eclipse.org/efxclipse/updates-released/1.2.0/site
    3. Click OK
    4. In the "Work with" dropdown list, select the recently added site "efxclipse"
    5. Check the checkbox "e(fx)clipse - install" to install all components of this selection
    6. Move to next steps to finish the installation
    7. Restart your Eclipse. If it still doesn't recognize JavaFX library, restart it again.

    Original information can be found here: https://www.eclipse.org/efxclipse/install.html#for-the-lazy

提交回复
热议问题