You are not logged in.
Hello,
since the Java update (from 15 to 16) on 17 June, my Freemind application (and that also on my partner's laptop) will not open. Instead, the following error message is generated:
Checking Java Version...
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 @5a8e6209
at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:357)
at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:297)
at java.base/java.lang.reflect.Field.checkCanSetAccessible(Field.java:177)
at java.base/java.lang.reflect.Field.setAccessible(Field.java:171)
at freemind.main.FreeMindStarter.main(FreeMindStarter.java:72)
This is a serious problem, as I use Freemind for my note-taking.
All of my other Java programs (NetBeans, JEdit, UMLet, Protegé) work fine with the new Java, this appears to be a specifically Freemind problem. As a temporary work-around, I have re-installed the Java 15 files and am ignoring Java 16 for the time being. I have checked the forum and the internet, and cannot find anything relating to this Java update, so I am suspecting it is related possibly to some problem with my system. However, it is completely up-to-date, there are no other problems, and there is absolutely nothing exotic about my system, at least that I am aware of.
Many thanks, Thea
Last edited by thea (2021-06-29 16:37:09)
Offline
Not a Forum & Wiki issue, moving to Applications & Desktop
Offline
Maybe freemind needs to be recompiled? Also try to run it with
--add-opens=java.desktop/sun.awt.X11=ALL-UNNAME
https://bz.apache.org/bugzilla/show_bug.cgi?id=65388
Another option may be to run it with jre11-openjdk. It is possible that some people use that as the default jre and did not run into the problem with version 16.
Last edited by progandy (2021-06-29 09:09:19)
| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |
Offline
Progandy, thanks for your tip. Unfortunately, the same error message results, and Freemind won't start. How does one recompile Freemind?
Thea
Offline
Where is the settings file (system) for Freemind? I have tried finding it, but couldn't find it.
Offline
The --add-opens parameter might have to be added to the command running java at the end of /usr/share/freemind/freemind.sh (between "$JAVACMD" and "-Xmx250")
To run it with an older version, just export JAVA_HOME pointing to e.g. /usr/lib/jvm/java-11-openjdk before running freemind (maybe add it to the desktop file)
env JAVA_HOME=/usr/lib/jvm/java-11-openjdk freemind
Last edited by progandy (2021-06-29 10:13:56)
| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |
Offline
Thanks, Progandy!
I had forgotten the archlinux-java utility. I changed the default Java environment to jdk 11 (was 16), and now Freemind opens without a problem.
Life is busier after 70. Thea
Offline