使用Jmter提示错误
Uncaught Exception java.lang.IllegalAccessError: class com.github.weisj.darklaf.ui.filechooser.DarkFilePaneUIBridge$DetailsTableModel (in unnamed module @0xf2f2cc1) cannot access class sun.awt.shell.ShellFolder (in module java.desktop) because module java.desktop does not export sun.awt.shell to unnamed module @0xf2f2cc1 in thread Thread[AWT-EventQueue-0,6,main]. See log file for details.
因为使用了java jdk 15 以上的版本,解决办法如下:
在jmter.bat 中添加:
--add-opens=java.desktop/sun.awt.shell=ALL-UNNAMED