Skip to content

Instantly share code, notes, and snippets.

@topolik
Created May 9, 2025 08:59
Show Gist options
  • Save topolik/42b5c1830d890d81ff7251d680e322e0 to your computer and use it in GitHub Desktop.
Save topolik/42b5c1830d890d81ff7251d680e322e0 to your computer and use it in GitHub Desktop.
Freemind java run on latest Java
Two exceptions:
1) Exception in thread "main" 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 @77556fd
2) Caused by: java.lang.UnsupportedOperationException: The Security Manager is deprecated and will be removed in a future release
Caused by introducing Java 9 modules and removing Security Manager from Java 17.
Workaround: run java with:
-Djava.security.manager=allow --add-opens=java.desktop/sun.awt.X11=ALL-UNNAMED
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment