How to fix jfoenix modules with javafx 11

前端 未结 3 1885
滥情空心
滥情空心 2020-12-10 14:40

So I\'m adding my requires for module-info.java and finally got my program to load but as soon as tab pane wants to load from jfoenix library this error is thrown.



        
3条回答
  •  庸人自扰
    2020-12-10 15:22

    I was able to successfully run every aspect of the jfoenix library thus far. I still have some testing to do in my application to make sure there are no errors hidden but at this moment the following VM options fixed the issue :

    --add-exports javafx.controls/com.sun.javafx.scene.control.behavior=com.jfoenix
    --add-exports javafx.controls/com.sun.javafx.scene.control=com.jfoenix
    --add-exports javafx.base/com.sun.javafx.binding=com.jfoenix
    --add-exports javafx.graphics/com.sun.javafx.stage=com.jfoenix
    --add-exports javafx.base/com.sun.javafx.event=com.jfoenix
    

提交回复
热议问题