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
java.lang.IllegalAccessError: class org.cef.browser.mac.CefBrowserWindowMac (in unnamed module @0x379531e0) cannot access class sun.awt.AWTAccessor (in module java.desktop) because module java.desktop does not export sun.awt to unnamed module @0x379531e0
#235
Open
deepakgupta881 opened this issue
Oct 8, 2024
· 0 comments
It works normally when we run the application.
./gradlew run
compose.desktop {
application {
// all your other configuration, etc
jvmArgs("--add-opens", "java.desktop/sun.awt=ALL-UNNAMED")
jvmArgs("--add-opens", "java.desktop/java.awt.peer=ALL-UNNAMED") // recommended but not necessary
if (System.getProperty("os.name").contains("Mac")) {
jvmArgs("--add-opens", "java.desktop/sun.lwawt=ALL-UNNAMED")
jvmArgs("--add-opens", "java.desktop/sun.lwawt.macosx=ALL-UNNAMED")
}
}
}
However, creating the distributable build won't work for the desktop and throws the same error.
Any help would be appreciated. Thanks!
The text was updated successfully, but these errors were encountered:
system: mac Os
It works normally when we run the application.
./gradlew run
However, creating the distributable build won't work for the desktop and throws the same error.
Any help would be appreciated. Thanks!
The text was updated successfully, but these errors were encountered: