You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Exception in thread "FXLauncher-Thread" java.lang.IllegalAccessError: class fxlauncher.Launcher$1 (in module fxlauncher) cannot access class com.sun.javafx.application.PlatformImpl (in module javafx.graphics) because module javafx.graphics does not export com.sun.javafx.application to module fxlauncher
#202
Open
edovale opened this issue
Apr 14, 2022
· 1 comment
I have been banging my head trying to figure this problem out. The error message is self-explanatory. It seems fxlauncher is attempting to access a non exported class.
OpenJDK 64-Bit Server VM warning: Archived non-system classes are disabled because the java.system.class.loader property is specified (value = "fxlauncher.FxlauncherClassCloader"). To use archived non-system classes, this property must not be set
logging to /var/folders/8q/ln9l7ksj3fn8419bb09l3gxm0000gn/T//fxlauncher.log
Apr. 14, 2022 4:04:07 P.M. fxlauncher.AbstractLauncher syncManifest
INFO: Loading manifest from 'app' parameter supplied: javafx-agent/target/app/app.xml/
Apr. 14, 2022 4:04:08 P.M. fxlauncher.AbstractLauncher syncFiles
INFO: Using cache dir .
Apr. 14, 2022 4:04:08 P.M. fxlauncher.AbstractLauncher createApplicationEnvironment
INFO: Loading appClass ai.dentacloud.dentacloudagent.DentacloudApplication
Exception in thread "FXLauncher-Thread" java.lang.IllegalAccessError: class fxlauncher.Launcher$1 (in module fxlauncher) cannot access class com.sun.javafx.application.PlatformImpl (in module javafx.graphics) because module javafx.graphics does not export com.sun.javafx.application to module fxlauncher
at fxlauncher/fxlauncher.Launcher$1.createApplication(Launcher.java:51)
at fxlauncher/fxlauncher.AbstractLauncher.createApplicationEnvironment(AbstractLauncher.java:176)
at fxlauncher/fxlauncher.Launcher.lambda$start$0(Launcher.java:158)
at java.base/java.lang.Thread.run(Thread.java:833)
The text was updated successfully, but these errors were encountered:
Hey @edovale , You can easily solve this issue by adding this line --add-exports javafx.graphics/com.sun.javafx.application=ALL-UNNAMED after --add-modules. And any similar future issue can be resolved using this same pattern. It works for exports and opens problem
Hi,
I have been banging my head trying to figure this problem out. The error message is self-explanatory. It seems fxlauncher is attempting to access a non exported class.
What is a way to solve this problem?
Command being ran:
Here is the stacktrace I am getting:
The text was updated successfully, but these errors were encountered: