Skip to content

Illegal reflective access by processing.app.platform.LinuxPlatform #207

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
processing-bot opened this issue Jun 18, 2021 · 5 comments
Closed
Labels
help wanted Extra attention is needed linux

Comments

@processing-bot
Copy link
Collaborator

Created by: benfry

The X11 WM_CLASS property which is used as the application name by Gnome3 and other window managers, so in response to processing/processing#2534, we added code to modify the name. It relies on a hack that makes a field public, so Java 11+ complains about it.

To fix, we need a more reliable way to specify the application name so that it doesn't show up as Processing.app.Base on Linux. This could be as simple as modifying the launcher script to set the WM_CLASS environment variable to Processing on startup, but someone would need to spend some time looking into it and testing any possible solution on various Linux distros.

There may also be an alternative using JNA, but on a quick look, it seemed to required a contrib library for JNA, which we probably don't want to rely on for sake of longevity.

@processing-bot
Copy link
Collaborator Author

Created by: mario6097

Is this issue the reason for #333?
Is there a workaround, since otherwise I can not use Processing4 on my machine F35?
It would be great if somebody fix it.

@processing-bot
Copy link
Collaborator Author

Created by: benfry

I don't think so—I believe this is a benign problem that we just need to deal with at some point.

@processing-bot
Copy link
Collaborator Author

Created by: benfry

To be clear: this is a warning (just like the message says in all caps, I guess), not an error that will break the software (for now). But I'd still like to address the issue it's complaining about.

@processing-bot
Copy link
Collaborator Author

Created by: benfry

Warning fixed with 8e54334 but the deeper issue is still unresolved. See #207.

@processing-bot
Copy link
Collaborator Author

Created by: github-actions[bot]

This issue has been automatically locked. To avoid confusion with reports that have already been resolved, closed issues are automatically locked 30 days after the last comment. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
help wanted Extra attention is needed linux
Projects
None yet
Development

No branches or pull requests

1 participant