https://bz.apache.org/bugzilla/show_bug.cgi?id=65388
Bug ID: 65388 Summary: Unable to make field private static * accessible module * does not * to unnamed module Product: JMeter Version: Nightly (Please specify date) Hardware: PC OS: Linux Status: NEW Severity: regression Priority: P2 Component: Main Assignee: issues@jmeter.apache.org Reporter: ra...@rabin.io Target Milestone: JMETER_5.5 Hello, after upgrading my Fedora machine to F34 and using Java 16 I started to get this message and JMeter will fail to load. ``` An error occurred: 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 @667a738 ``` I'm not a java developer, But after looking a bit on stack-oferflow, I found this [1] question and one thing to the other ... I edit the `jmeter.sh` and added this option to JAVA9_OPTS variable --add-opens=java.desktop/sun.awt.X11=ALL-UNNAME So my script looks like this now, # Check if Java is present and the minimal version requirement if [ "$CURRENT_VERSION" -gt "$MINIMAL_VERSION" ]; then JAVA9_OPTS+=" --add-opens java.desktop/sun.awt=ALL-UNNAMED" JAVA9_OPTS+=" --add-opens=java.desktop/sun.awt.shell=ALL-UNNAMED" JAVA9_OPTS+=" --add-opens=java.desktop/sun.awt.X11=ALL-UNNAMED" JAVA9_OPTS+=" --add-opens java.desktop/sun.swing=ALL-UNNAMED" JAVA9_OPTS+=" --add-opens java.desktop/javax.swing.text.html=ALL-UNNAMED" JAVA9_OPTS+=" --add-opens=java.base/java.lang=ALL-UNNAMED" JAVA9_OPTS+=" --add-opens=java.base/java.lang.invoke=ALL-UNNAMED" fi And that seems to help, and now jmeter is loading again. [1] https://stackoverflow.com/questions/41265266/how-to-solve-inaccessibleobjectexception-unable-to-make-member-accessible-m -- You are receiving this mail because: You are the assignee for the bug.