Skip to content

Fix "InaccessibleObjectException" exception on Linux startup (#1559) - #1560

Closed
catilac wants to merge 1 commit into
4.xfrom
main
Closed

Fix "InaccessibleObjectException" exception on Linux startup (#1559)#1560
catilac wants to merge 1 commit into
4.xfrom
main

Conversation

@catilac

@catilac catilac commented Aug 5, 2026

Copy link
Copy Markdown
Collaborator

Linux builds would previously throw this error on startup:

java.lang.reflect.InaccessibleObjectException: Unable to make field private
static java.lang.String sun.awt.X11.XToolkit.awtAppClassName accessible:
module java.desktop does not "opens sun.awt.X11" to unnamed module @4c8aea9c

The code that triggered this in Processing itself documented that an --add-opens parameter must be used, but this was never applied in the gradle build.

Linux builds would previously throw this error on startup:
> java.lang.reflect.InaccessibleObjectException: Unable to make field private
> static java.lang.String sun.awt.X11.XToolkit.awtAppClassName accessible:
> module java.desktop does not "opens sun.awt.X11" to unnamed module @4c8aea9c

The code that triggered this in Processing itself documented that an
`--add-opens` parameter must be used, but this was never applied in the
gradle build.

Co-authored-by: Tony Wasserka <neobrain@users.noreply.github.com>
@catilac catilac closed this Aug 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants