Eclipse/Java9: how to access internal javafx packages?

前端 未结 3 1495
执念已碎
执念已碎 2020-12-18 08:49

My context:

  • Eclipse IDE for Java Developers, Version: Oxygen.1a Release (4.7.1a), Build id: 20171005-1200oxygen
  • jdk9.0.1
  • win10
<
3条回答
  •  时光取名叫无心
    2020-12-18 09:34

    1. In Project > Properties: Java Build Path, Libraries tab, select the node Modulepath/JRE System Library[JavaSE-9]/Is modular and click Edit...
    2. In the Module Properties dialog, in the Details tab, in the Added exports section click Add... and enter the following:
      • Source module: javafx.controls
      • Package: com.sun.javafx.scene.control
    3. Click OK twice to close the Add-exports configuration and the Module Properties dialogs and Apply and Close to close the Properties dialog

提交回复
热议问题