Teragam / JFXShader

Allows custom effect shaders in JavaFX
Apache License 2.0
33 stars 1 forks source link

Trouble with integration of library #6

Closed SergBukreev closed 10 months ago

SergBukreev commented 1 year ago

Hi! Trying to integrate your library with FXGL and this issue appears after running app Caused by: java.lang.IllegalAccessError: superclass access check failed: class de.teragam.jfxshader.material.ShaderMaterial$6 (in unnamed module @0x6a80675f) cannot access class com.sun.javafx.beans.event.AbstractNotifyListener (in module javafx.graphics) because module javafx.graphics does not export com.sun.javafx.beans.event to unnamed module @0x6a80675f Can you help with this?

Teragam commented 1 year ago

Hi! Are you using the Java Module System for your project? JFXShader works with internal JavaFX components that are not externally available by default. You can call JFXShaderModule.setup(); before using any of the libraries classes. This will open the JavaFX module up to the library. This is only necessary when using Java modules.

Teragam commented 10 months ago

Update: I added a troubleshooting page to the wiki containing the solution for this error.