'Jmeter 5.4.3: Exception when file open is clicked: File>open

Downloaded latest apache-jmeter-5.4.3 Click on File > Open

exception found in the command and logs:

Uncaught Exception java.lang.IllegalAccessError: class com.github.weisj.darklaf.ui.filechooser.DarkFilePaneUIBridge$DetailsTableModel (in unnamed module @0x327b636c) cannot access class sun.awt.shell.ShellFolder (in module java.desktop) because module java.desktop does not export sun.awt.shell to unnamed module @0x327b636c in thread Thread[AWT-EventQueue-0,6,main]. java.lang.IllegalAccessError: class com.github.weisj.darklaf.ui.filechooser.DarkFilePaneUIBridge$DetailsTableModel

java version "17.0.2" 2022-01-18 LTS windows 11



Solution 1:[1]

It's a bug in JMeter use one of the following workarounds:

  1. Change "Look and Feel" to something which doesn't contain Darklaf

    enter image description here

  2. Add the next line to user.properties file (lives in "bin" folder of your JMeter installation)

    jmeter.laf=CrossPlatform
    
  3. Downgrade to Java 8

  4. Try Nightly Build of JMeter

  5. Add --add-opens=java.desktop/sun.awt.shell=ALL-UNNAMED to this line of jmeter.bat startup script

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Dmitri T