Getting error when using Jfoenix 9 controls with JDK 13

点点圈 提交于 2021-01-29 19:31:02

问题


Here is the code that causes the problem

<JFXColorPicker layoutX="109.0" layoutY="282.0" />
        <JFXCheckBox layoutX="58.0" layoutY="356.0" />
        <JFXNodesList layoutX="87.0" layoutY="307.0" />

Here is the error

    Exception in Application start method
java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:567)

Caused by: java.lang.RuntimeException: Exception in Application start method

Caused by: java.lang.IllegalAccessError: superclass access check failed: class com.jfoenix.controls.behavior.JFXGenericPickerBehavior (in unnamed module @0x3be7d920) cannot access class com.sun.javafx.scene.control.behavior.ComboBoxBaseBehavior (in module javafx.controls) because module javafx.controls does not export com.sun.javafx

I am very new to Java and developing so if this a stupid error or me just not knowing enough then I apologize. In intellij I added the Jfoenix .jar file to the libraries, but i'm not sure what else to do to correct this. If i could be pointed in the correct direction then I would appreciate it. If i need to go to a lower JDK, is there another download location? the one on the oracle site doesn't seem to be working.

来源:https://stackoverflow.com/questions/60478061/getting-error-when-using-jfoenix-9-controls-with-jdk-13

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!