【JMeter】启动时报错Uncaught Exception java.lang.IllegalAccessError

 

启动JMeter时,报错信息:

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

 

解决方法:

因为使用了java jdk 15 以上的版本:打开jmeter.bat文件,在大概112行位置添加:

--add-opens=java.desktop/sun.awt.shell=ALL-UNNAMED

 

posted @ 2022-05-06 12:05  pearl007  阅读(1032)  评论(0编辑  收藏  举报