FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Fix "InaccessibleObjectException" exception on Linux startup by neobrain · Pull Request #1559 · processing/processing4 · GitHub

Fix "InaccessibleObjectException" exception on Linux startup - #1559

Merged
catilac merged 1 commit into
processing:mainfrom
neobrain:add-opens
Aug 5, 2026
Merged

Fix "InaccessibleObjectException" exception on Linux startup#1559
catilac merged 1 commit into
processing:mainfrom
neobrain:add-opens

Conversation

neobrain commented Aug 3, 2026
edited
Loading

Copy link
Copy Markdown
Contributor

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. This now matches the --add-opens parameter used in build/linux/processing.

Comment from LinuxPlatform.java:

// Set X11 WM_CLASS property which is used as the application
// name by Gnome 3 and other window managers.
// processing/processing#2534
// For Java 17, this hack requires an addition to the command line:
// --add-opens=java.desktop/sun.awt.X11=ALL-UNNAMED

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.

catilac left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

amazing, thank you for fixing this @neobrain !

catilac merged commit 0d8bde5 into processing:main Aug 5, 2026
6 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL